wisemapping-frontend/packages/mindplot/webpack.prod.js

17 lines
349 B
JavaScript
Raw Normal View History

2021-07-16 16:41:58 +02:00
const { merge } = require('webpack-merge');
2021-12-22 05:38:13 +01:00
const CompressionPlugin = require('compression-webpack-plugin');
2021-07-16 16:41:58 +02:00
const common = require('./webpack.common');
const prodConfig = {
optimization: {
2021-12-22 05:38:13 +01:00
minimize: true,
},
2021-12-22 05:38:13 +01:00
plugins: [
new CompressionPlugin({
2021-12-29 02:34:24 +01:00
test: /\.js(\?.*)?$/i,
2021-12-22 05:38:13 +01:00
}),
],
2021-07-16 16:41:58 +02:00
};
module.exports = merge(common, prodConfig);