houdini/webpack.production.js

20 lines
543 B
JavaScript
Raw Normal View History

const merge = require('webpack-merge');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CompressionPlugin = require("compression-webpack-plugin");
const common = require('./webpack.common.js');
const common_stuff = {
plugins: [
new UglifyJSPlugin(),
new CompressionPlugin({
asset: '[path].gz'
})
]
}
module.exports = [
merge(common.base, common_stuff),
merge(common.translations, common_stuff),
merge(common.button, common_stuff),
merge(common.css, common_stuff)
]