mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(schema): remove obsolete terser option from webpack config (#21407)
This commit is contained in:
parent
5872015be3
commit
6d62b65f97
@ -35,7 +35,6 @@ export default defineBuildConfig({
|
||||
'@vitejs/plugin-vue',
|
||||
'@vitejs/plugin-vue-jsx',
|
||||
'mini-css-extract-plugin',
|
||||
'terser-webpack-plugin',
|
||||
'css-minimizer-webpack-plugin',
|
||||
'webpack-dev-middleware',
|
||||
'h3',
|
||||
|
@ -212,20 +212,6 @@ export default defineUntypedSchema({
|
||||
*/
|
||||
plugins: [],
|
||||
|
||||
/**
|
||||
* Terser plugin options.
|
||||
*
|
||||
* Set to false to disable this plugin, or pass an object of options.
|
||||
*
|
||||
* @see [terser-webpack-plugin documentation](https://github.com/webpack-contrib/terser-webpack-plugin).
|
||||
*
|
||||
* @note Enabling sourceMap will leave `//# sourceMappingURL` linking comment at
|
||||
* the end of each output file if webpack `config.devtool` is set to `source-map`.
|
||||
*
|
||||
* @type {false | typeof import('terser-webpack-plugin').BasePluginOptions & typeof import('terser-webpack-plugin').DefinedDefaultMinimizerAndOptions<any>}
|
||||
*/
|
||||
terser: {},
|
||||
|
||||
/**
|
||||
* Hard-replaces `typeof process`, `typeof window` and `typeof document` to tree-shake bundle.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user