2018-03-25 18:03:08 +00:00
|
|
|
// License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
2018-03-25 17:30:42 +00:00
|
|
|
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)
|
2018-03-25 18:03:08 +00:00
|
|
|
]
|