diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:50 +0000 |
commit | 6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c (patch) | |
tree | 04e41667e9eae835f5d88bda4f6d3f5c2664de01 /webpack.prod.js | |
parent | Initial commit. (diff) | |
download | sphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.tar.xz sphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.zip |
Adding upstream version 2.0.0+dfsg.upstream/2.0.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'webpack.prod.js')
-rw-r--r-- | webpack.prod.js | 11 |
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({})] + } +}); |