2016-12-05 22:11:55 +02:00
|
|
|
const plugins = require('./plugins');
|
|
|
|
const base = require('./base');
|
2016-10-20 04:14:26 +03:00
|
|
|
|
2016-12-05 22:11:55 +02:00
|
|
|
|
|
|
|
module.exports = Object.assign(base, {
|
|
|
|
devtool: 'hidden-source-map',
|
2016-10-20 04:14:26 +03:00
|
|
|
entry: [
|
|
|
|
'./index.js'
|
|
|
|
],
|
2016-12-05 22:11:55 +02:00
|
|
|
plugins: base.plugins.concat([
|
|
|
|
plugins['named-modules']
|
|
|
|
// plugins['occurrence-order'],
|
|
|
|
// plugins['aggressive-merging'],
|
|
|
|
// plugins['uglify-js']
|
|
|
|
])
|
2016-10-20 04:14:26 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|