-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
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
Webpack 4 support #105
Comments
Hey @mhheise, thanks for bringing this up! It would be very much welcome if you could make a PR with the changes required for webpack 4. |
I was trying to fix this issue as well, but I couldn't figure out yet what's the correct API to use here. /cc @ooflorent @TheLarkInn Any hint on how to fix this? Also, is the "old" |
For webpack 4 compatibility, you need to use compiler.hooks.autodllStatsRetrieved = new SyncHooks(["stats", "source"]); Then you can replace compiler.hooks.autodllStatsRetrieved.call(stats, source); If you want to keep webpack 3 compatibility, use feature detection: if (compiler.hooks) {
// webpack 4
} else {
// webpack 3
} |
@ooflorent many thanks! @sudo-suhas would you like to take care of this? Otherwise I'll try to open a PR. |
I have started work on my own fork -- I can push it up for review soon once tests are passing 😄 |
@mhheise awesome! 🙌 |
@asfktz @sudo-suhas I have changes underway and will push a WIP PR shortly, but I am seeing this error when I am testing my changes with the examples directory: Error: ENOENT: no such file or directory, open 'C:\Git\autodll-webpack-plugin\examples\recommended\node_modules\.cache\autodll-webpack-plugin\development_instance_0_1dc0c813842ea3b964c005e53b6b3ea3\vendor.manifest.json' Any thoughts? I know that the file is not present on my machine, but I am not quite sure how to generate it so that an |
Hi @mhheise! First, thanks a lot for taking this 🙏 I'll take a look at it tomorrow and see what I can do to help (: |
Hi @mhheise, I've left I few notes in the PR |
Any update on this? EDIT: oh I see you guys are still working on it, good job! |
I got html-webpack-plugin working. Please verify so it can get merged to the main package sooner: https://www.npmjs.com/package/autodll-webpack-plugin-webpack-4
|
👍 |
@faceyspacey There is a little problem about the
Maybe you can try with a new demo. (do not install |
Hi everybody, Thanks for @mhheise & @faceyspacey for making it happen ❤️ |
Can't this be closed then? 👍 |
I tried upgrading to webpack 4 but I am seeing this error:
Looks like the error might be from this line:
https://github.com/asfktz/autodll-webpack-plugin/blob/master/src/plugin.js#L86
I am not sure if you are working on this upgrade already (as webpack 4 made several breaking changes to the plugin system) -- but I would be happy to help.
The text was updated successfully, but these errors were encountered: