@loftyshaky/shared 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/ext/webpack.config.js +3 -1
- package/package.json +1 -1
package/js/ext/webpack.config.js
CHANGED
|
@@ -5,6 +5,7 @@ const shared_config = ({
|
|
|
5
5
|
webpack,
|
|
6
6
|
argv,
|
|
7
7
|
env,
|
|
8
|
+
TerserPlugin,
|
|
8
9
|
MiniCssExtractPlugin,
|
|
9
10
|
CssMinimizerPlugin,
|
|
10
11
|
CopyWebpackPlugin,
|
|
@@ -123,7 +124,8 @@ const shared_config = ({
|
|
|
123
124
|
target: 'web',
|
|
124
125
|
devtool: false,
|
|
125
126
|
optimization: {
|
|
126
|
-
|
|
127
|
+
minimize: argv.mode === 'production',
|
|
128
|
+
minimizer: [new TerserPlugin(), new CssMinimizerPlugin()],
|
|
127
129
|
sideEffects: argv.mode === 'production',
|
|
128
130
|
},
|
|
129
131
|
performance: {
|