mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
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.
12 lines
372 B
JavaScript
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({})]
|
|
}
|
|
});
|