17 lines
359 B
JavaScript
Raw Normal View History

2021-02-15 23:43:26 -08:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
2021-02-16 01:15:04 -08:00
const path = require('path');
2021-02-15 23:43:26 -08:00
2021-02-16 11:22:55 -08:00
const CompressionPlugin = require('compression-webpack-plugin');
2021-02-15 23:43:26 -08:00
module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
optimization: {
2021-02-16 11:14:04 -08:00
minimize: true
},
plugins: [
new CompressionPlugin()
]
2021-02-15 23:43:26 -08:00
});