sphinx_rtd_theme/webpack.prod.js
Anthony Johnson 2d874544b2 Run webpack js through Prettier JS formatter
Uses Prettier with no options. I'm fine accepting this as the default
style for our Javascript and autoformatting src/js/*.js as well. I left
those changes out for now.
2019-07-26 15:35:35 -06:00

12 lines
372 B
JavaScript

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({})]
}
});