mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 03:07:57 +01:00
17 lines
348 B
JavaScript
17 lines
348 B
JavaScript
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);
|