build: preserve class & function in client script, disable terser for server script
This commit is contained in:
parent
788f86f83e
commit
282adab337
2 changed files with 2 additions and 6 deletions
|
|
@ -55,6 +55,8 @@ module.exports = {
|
|||
terser({
|
||||
safari10: true,
|
||||
sourceMap: true,
|
||||
keep_classnames: true,
|
||||
keep_fnames: true,
|
||||
output: {
|
||||
comments: false,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -33,12 +33,6 @@ module.exports = {
|
|||
nodeResolve({
|
||||
preferBuiltins: true
|
||||
}),
|
||||
terser({
|
||||
sourceMap: true,
|
||||
output: {
|
||||
comments: false,
|
||||
},
|
||||
}),
|
||||
license({
|
||||
banner: {
|
||||
content: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue