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

27 lines
534 B
JavaScript
Raw Normal View History

2021-02-16 08:43:26 +01:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
2021-02-16 10:15:04 +01:00
const path = require('path');
2021-02-16 08:43:26 +01:00
module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
optimization: {
2021-02-16 20:14:04 +01:00
minimize: true
},
plugins: [
new CleanWebpackPlugin(),
new CopyWebpackPlugin({
patterns: [{
from: 'public/*',
to: '[name].[ext]',
globOptions: {
ignore: [
'**/index.html'
]
}
}]
}),
new CompressionPlugin()
]
2021-02-16 08:43:26 +01:00
});