1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/size-limit/next.config.js

16 lines
438 B
JavaScript
Raw Normal View History

const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer')
2018-10-20 15:03:19 +00:00
module.exports = {
webpack (config, {isServer}) {
config.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: `dist/${isServer ? 'server' : 'client'}.html`,
openAnalyzer: false
}))
return config
},
2018-10-20 15:03:19 +00:00
onDemandEntries: {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60
}
}