mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
!275 Modify option of TerserPlugin
Merge pull request !275 from ctw-ian/modify_minify
This commit is contained in:
@@ -146,7 +146,13 @@ function setReleaseConfig(config) {
|
||||
emitOnErrors: true,
|
||||
usedExports: false,
|
||||
minimize: true,
|
||||
minimizer: [new TerserPlugin()]
|
||||
minimizer: [new TerserPlugin({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
join_vars: false
|
||||
}
|
||||
}
|
||||
})]
|
||||
};
|
||||
config.output.sourceMapFilename = '_releaseMap/[name].js.map';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user