2019-01-21 22:39:39 +01:00
|
|
|
const path = require('path')
|
2017-02-26 20:45:16 +01:00
|
|
|
module.exports = {
|
|
|
|
onDemandEntries: {
|
|
|
|
// Make sure entries are not getting disposed.
|
2019-11-11 04:24:53 +01:00
|
|
|
maxInactiveAge: 1000 * 60 * 60,
|
2019-01-21 22:39:39 +01:00
|
|
|
},
|
2019-11-11 04:24:53 +01:00
|
|
|
webpack(config) {
|
2019-01-21 22:39:39 +01:00
|
|
|
config.module.rules.push({
|
2019-01-27 16:12:17 +01:00
|
|
|
test: /pages[\\/]hmr[\\/]about/,
|
2019-11-11 04:24:53 +01:00
|
|
|
loader: path.join(__dirname, 'warning-loader.js'),
|
2019-01-21 22:39:39 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
return config
|
2019-11-11 04:24:53 +01:00
|
|
|
},
|
2017-02-26 20:45:16 +01:00
|
|
|
}
|