*/}
+
three.cad
diff --git a/webpack.prod.js b/webpack.prod.js
index c7a3e7a..ef2800e 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -2,6 +2,7 @@ const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack')
+const TerserPlugin = require("terser-webpack-plugin");
module.exports = merge(common, {
@@ -12,5 +13,18 @@ module.exports = merge(common, {
// 'process.env.NODE_ENV': 'production'
}),
new webpack.IgnorePlugin(/redux-logger/)
- ]
+ ],
+ optimization: {
+ minimize: true,
+ minimizer: [
+ new TerserPlugin({
+ terserOptions: {
+ format: {
+ comments: false,
+ },
+ },
+ extractComments: false,
+ }),
+ ],
+ }
});
\ No newline at end of file