162f11c0c0
Just another app that I’ve been using for analysis
22 lines
538 B
JavaScript
22 lines
538 B
JavaScript
module.exports = {
|
|
experimental: {
|
|
polyfillsOptimization: true,
|
|
},
|
|
webpack(config, options) {
|
|
if (!options.isServer) {
|
|
config.profile = true
|
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
|
|
config.plugins.push(
|
|
new BundleAnalyzerPlugin({
|
|
generateStatsFile: true,
|
|
analyzerMode: 'static',
|
|
reportFilename: options.isServer
|
|
? '../analyze/server.html'
|
|
: './analyze/client.html',
|
|
})
|
|
)
|
|
}
|
|
|
|
return config
|
|
},
|
|
}
|