joyent-portal/frontend/webpack/production.js
2017-01-03 17:11:18 +00:00

24 lines
566 B
JavaScript

const plugins = require('./plugins');
const base = require('./base');
module.exports = Object.assign(base, {
devtool: 'hidden-source-map',
entry: [
base.entry
],
plugins: base.plugins.concat([
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
**/