mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
chore: tweak terser options to improve debugging
This commit is contained in:
parent
d2e8c3bd78
commit
5bd6531f5d
@ -217,8 +217,18 @@ export const getRollupConfig = (options: SLSOptions) => {
|
|||||||
rollupConfig.plugins.push(analyze())
|
rollupConfig.plugins.push(analyze())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/TrySound/rollup-plugin-terser
|
||||||
|
// https://github.com/terser/terser#minify-options
|
||||||
if (options.minify !== false) {
|
if (options.minify !== false) {
|
||||||
rollupConfig.plugins.push(terser())
|
rollupConfig.plugins.push(terser({
|
||||||
|
mangle: {
|
||||||
|
keep_fnames: true,
|
||||||
|
keep_classnames: true
|
||||||
|
},
|
||||||
|
format: {
|
||||||
|
comments: false
|
||||||
|
}
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
return rollupConfig
|
return rollupConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user