question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

improve compatibility with webpack@5

See original GitHub issue

in webpack@5 adding assets on emit hook is deprecated, so it should be improve, we talked with @sokra about migration and compatibility.

You can always get the stats of the current state via compilation.getStats, but I would not consider the stats.json as part of the assets/output files generated by webpack. It should use the done hook and write stats.json directly to the compilation.intermediateFileSystem (instead of the outputFileSystem).

So, we need do migration on done hook and use compilation.intermediateFileSystem

Thanks for plugin.

P.S. I would also like to say that it is very popular and we would to get it in webpack-contrib as official plugin, if you interested in this, just say me it and we will start to do it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Oct 20, 2020

@ryan-roemer

Thanks I’ll try that out! Other question if you’re around – is there a better explanation of the stages available for processAssets hook? In particular which one is the latest one in the build to call?

I think this is good https://github.com/webpack/webpack/blob/master/lib/Compilation.js#L3463

1reaction
ryan-roemercommented, Oct 15, 2020

Released in webpack-stats-plugin@1.0.0. Thanks for the help @evilebottnawi @sokra !

Read more comments on GitHub >

github_iconTop Results From Across the Web

To v5 from v4 - webpack
Upgrade webpack 4 and its plugins/loaders · Make sure your build has no errors or warnings · Make sure to use mode ·...
Read more >
Migrating to webpack 5 to improve build time and reduce ...
After a long time of 2 years, webpack came with its new upgrade i.e. ... So, that every loaders and plugins are compatible...
Read more >
Upgrading Webpack 4 → 5 | Square Corner Blog
While looking for ways to reduce bundle size, we discovered that Webpack 5 had improved tree-shaking. We hesitantly ran npm install webpack@ ...
Read more >
Webpack 5 Adoption - Next.js
Using webpack 5 in your application has many benefits, notably: Improved Disk Caching: next build is significantly faster on subsequent builds ...
Read more >
A mostly complete guide to webpack 5 (2020)
Plugins are third-party extensions that can alter how webpack works. For example there are plugins for extracting HTML, CSS, or for setting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found