Create UI to prompt for reload when an
update is available
This commit is contained in:
parent
bb40c09cda
commit
7fa7dd4e0f
7 changed files with 466 additions and 37 deletions
|
@ -1,6 +1,18 @@
|
|||
const webpack = require('webpack');
|
||||
const merge = require('webpack-merge');
|
||||
const common = require('./webpack.common.js');
|
||||
const Terser = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
}),
|
||||
],
|
||||
optimization:{
|
||||
minimizer: [new Terser({
|
||||
test: /\.m?js$/,
|
||||
})]
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue