Unverified Commit 162f11c0 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Add extra profiling app (#10568)

Just another app that I’ve been using for analysis
parent 88b1fe50
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
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment