summaryrefslogtreecommitdiffstats
path: root/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webpack.prod.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/webpack.prod.js b/webpack.prod.js
new file mode 100644
index 0000000..fbd3bf7
--- /dev/null
+++ b/webpack.prod.js
@@ -0,0 +1,11 @@
+const merge = require("webpack-merge");
+const OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin");
+const TerserPlugin = require("terser-webpack-plugin");
+const common = require("./webpack.common.js");
+
+module.exports = merge(common, {
+ mode: "production",
+ optimization: {
+ minimizer: [new TerserPlugin(), new OptimizeCssAssetsPlugin({})]
+ }
+});