nodefony
Version:
Nodefony Framework Core
32 lines (29 loc) • 635 B
JavaScript
// WEBPACK PROD CONFIGURATION
// const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
mode: "production",
watch: false,
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
warnings: true,
compress: true
},
extractComments: true,
parallel: true
})
]
},
plugins: [
/* new OptimizeCssAssetsPlugin({
cssProcessorOptions: {
discardComments: {
removeAll: true
}
},
canPrint: true
})*/
]
};