rsnext/test/integration/size-limit/next.config.js

21 lines
502 B
JavaScript
Raw Normal View History

const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
2018-10-20 17:03:19 +02: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 17:03:19 +02:00
onDemandEntries: {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60
},
experimental: {
modern: true
2018-10-20 17:03:19 +02:00
}
}