regexper-static/webpack.prod.js

16 lines
390 B
JavaScript
Raw Normal View History

2018-02-10 21:05:25 +00:00
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
2018-02-10 21:08:42 +00:00
const WorkboxPlugin = require('workbox-webpack-plugin');
2018-02-10 21:05:25 +00:00
module.exports = merge(common, {
devtool: 'source-map',
plugins: [
2018-02-10 21:08:42 +00:00
new UglifyJSPlugin(),
new WorkboxPlugin({
clientsClaim: true,
skipWaiting: true
})
2018-02-10 21:05:25 +00:00
]
});