This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/webpack.prod.js

18 lines
428 B
JavaScript
Raw Normal View History

2017-12-04 18:20:53 +00:00
const webpack = require('webpack')
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
2020-01-28 20:27:24 +00:00
const TerserPlugin = require('terser-webpack-plugin')
2017-12-04 18:20:53 +00:00
module.exports = merge(common, {
2020-01-28 20:27:24 +00:00
mode: 'production',
2017-12-04 18:20:53 +00:00
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
2020-01-28 20:27:24 +00:00
})
],
optimization: {
minimize: true,
minimizer: [ new TerserPlugin() ]
}
2017-12-04 18:20:53 +00:00
})