pack: set option correctly for webpack terser plugin

This commit is contained in:
leejooy96 committed 2022-06-14 13:19:37 +09:00
1 parent 60b07da996
commit 365a0bf35d
2 files changed
+4 -2

No files matched your search

+4 -1
View File
@@ -41,13 +41,16 @@ export default {
libraryTarget: 'commonjs2',
path: path.join(__dirname, '../../dist/electron')
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin()]
},
plugins: [
new webpack.NoEmitOnErrorsPlugin(),
new ESLintPlugin({
extensions: ['js'],
formatter: eslintFriendlyFormatter()
}),
new TerserPlugin(),
new webpack.DefinePlugin({
...IS_DEV_ENV
? {