sphinx-rtd-theme/webpack.prod.js

12 lines
372 B
JavaScript
Raw Permalink Normal View History

2024-05-07 10:45:48 +08:00
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({})]
}
});