mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-18 16:04:32 -04:00
modify minimizer option of TerserPlugin
Signed-off-by: ctw <chentingwei2@huawei.com> Change-Id: Ic870dc3416c90351b8d81a4a1bf9200144a9a8f8
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