joyent-portal/frontend/webpack/production.js
Sérgio Ramos 0189d7d29a re-organize webpack configuration
- detach plugins configuration
 - use aliases
 - add project root to frontend module resolver
2016-12-05 20:11:55 +00:00

25 lines
604 B
JavaScript

const plugins = require('./plugins');
const base = require('./base');
module.exports = Object.assign(base, {
devtool: 'hidden-source-map',
entry: [
'./index.js'
],
plugins: base.plugins.concat([
plugins['named-modules']
// plugins['occurrence-order'],
// plugins['aggressive-merging'],
// plugins['uglify-js']
])
});
/*
* 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
*/