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

17 lines
348 B
JavaScript
Raw Normal View History

2021-12-24 20:26:38 +01:00
const { merge } = require('webpack-merge');
const CompressionPlugin = require('compression-webpack-plugin');
const common = require('./webpack.common');
const prodConfig = {
optimization: {
minimize: true,
},
plugins: [
new CompressionPlugin({
test: /\.js(\?.*)?$/i
}),
],
};
module.exports = merge(common, prodConfig);