We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next build --stats
Would produce .next/stats.json and pass the profile flags to webpack
.next/stats.json
I tried this in next.config.js:
const StatsPlugin = require("stats-webpack-plugin") module.exports = { webpack (cfg) { if (process.env.WEBPACK_STATS) { cfg.profile = true cfg.plugins.push( new StatsPlugin('stats.json', { timings: true, assets: true, chunks: true, chunkModules: true, modules: true, children: true, cached: true, reasons: true }) ) } return cfg } }
But I think we need to handle it on next since it only contained main.js and common.js, and not any of the generated pages.
next
main.js
common.js
Ideally I would like the webpack plugin to work out of the box though
The text was updated successfully, but these errors were encountered:
Arunoda fixed the example this week 😄
Sorry, something went wrong.
timneutkens
No branches or pull requests
Would produce
.next/stats.json
and pass the profile flags to webpackI tried this in next.config.js:
But I think we need to handle it on
next
since it only containedmain.js
andcommon.js
, and not any of the generated pages.Ideally I would like the webpack plugin to work out of the box though
The text was updated successfully, but these errors were encountered: