joyent-portal/frontend/webpack/production.js

30 lines
646 B
JavaScript
Raw Permalink Normal View History

2017-01-03 19:11:18 +02:00
const plugins = require('./plugins');
const base = require('./base');
2016-10-20 04:14:26 +03:00
module.exports = Object.assign(base, {
bail: true,
devtool: 'source-map',
2017-01-03 19:11:18 +02:00
entry: [
base.entry
],
plugins: base.plugins.concat([
plugins['occurrence-order'](),
plugins['aggressive-merging'](),
plugins['uglify-js']()
]),
node: {
fs: 'empty',
net: 'empty',
tls: 'empty'
}
2016-10-20 04:14:26 +03:00
});
2016-12-12 12:56:48 +02:00
/**
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
2016-12-12 12:56:48 +02:00
**/