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

17 lines
348 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({
test: /\.js(\?.*)?$/i
}),
],
2021-07-16 16:41:58 +02:00
};
module.exports = merge(common, prodConfig);