@nodefony/documentation-bundle
Version:
Nodefony Framework Bundle Documentation
30 lines (28 loc) • 602 B
JavaScript
//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
})*/
]
};