6d5922e399
- better stack traces - disable hmr (for now) - runtime eslint - remove all async/await stuff (untill we actually need it) - reaload when modules change - show full path in compiled requires - ignore node dependencies - don't instantiate plugins unless required
30 lines
646 B
JavaScript
30 lines
646 B
JavaScript
const plugins = require('./plugins');
|
|
const base = require('./base');
|
|
|
|
|
|
module.exports = Object.assign(base, {
|
|
bail: true,
|
|
devtool: 'source-map',
|
|
entry: [
|
|
base.entry
|
|
],
|
|
plugins: base.plugins.concat([
|
|
plugins['occurrence-order'](),
|
|
plugins['aggressive-merging'](),
|
|
plugins['uglify-js']()
|
|
]),
|
|
node: {
|
|
fs: 'empty',
|
|
net: 'empty',
|
|
tls: 'empty'
|
|
}
|
|
});
|
|
|
|
/**
|
|
* 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
|
|
**/
|