-
-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
Description
Documentation Is: ReadMe file
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail...
this paragraph is mentioned in the ReadMe file to access stats but checked in code the stats field is not present inside devMiddleware.context.stats but in devMiddleware.stats
const { devMiddleware } = res.locals.webpack;
const outputFileSystem = devMiddleware.context.outputFileSystem;
const jsonWebpackStats = devMiddleware.context.stats.toJson();
const { assetsByChunkName, outputPath } = jsonWebpackStats;
Your Proposal for Changes
Either update the code or ReadMe.
const { devMiddleware } = res.locals.webpack;
const outputFileSystem = devMiddleware.outputFileSystem;
const jsonWebpackStats = devMiddleware.stats.toJson();
const { assetsByChunkName, outputPath } = jsonWebpackStats;