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-11 17:37:41 +00:00
|
|
|
new UglifyJSPlugin({
|
|
|
|
sourceMap: true
|
|
|
|
}),
|
2018-02-10 21:08:42 +00:00
|
|
|
new WorkboxPlugin({
|
|
|
|
clientsClaim: true,
|
|
|
|
skipWaiting: true
|
|
|
|
})
|
2018-02-10 21:05:25 +00:00
|
|
|
]
|
|
|
|
});
|