1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00
copilot/frontend/webpack/production.js

23 lines
611 B
JavaScript
Raw Normal View History

2016-10-24 16:11:50 +03:00
const base = require('./base.js');
2016-10-20 04:14:26 +03:00
const webpack = require('webpack');
2016-10-24 16:11:50 +03:00
module.exports = Object.assign(base.config, {
2016-10-20 04:14:26 +03:00
entry: [
'./index.js'
],
plugins: base.config.plugins.concat([
2016-10-20 04:14:26 +03:00
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurrenceOrderPlugin(true),
new webpack.optimize.UglifyJsPlugin()
]),
devtool: 'eval'
});
/*
* Maybe add in the future:
* - https://github.com/lettertwo/appcache-webpack-plugin
* - https://github.com/NekR/offline-plugin
* - https://github.com/goldhand/sw-precache-webpack-plugin
* - https://github.com/Klathmon/imagemin-webpack-plugin
*/