-
Notifications
You must be signed in to change notification settings - Fork 135
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
V4 #165
base: master
Are you sure you want to change the base?
V4 #165
Conversation
Why: works better with other plugins so plugin order shouldn't matter
@endiliey does using |
It didnt work for ours because our setup is slightly complicated. We have a client and server compilation running |
@endiliey but the |
yes it works on our setup. I am not sure why v3 used emit hook when v2 is compile since I havent really followed this repository much except for watching releases. I am not sure whats the best solution but anyway I think its ok if cleanwebpackplugin cant satisfy all use case. We are quite happy staying in v2 modified version for now. |
@endiliey I definitely agree this / any library doesn't need to satisfy all use cases, but this one can easily adapt to yours/others with similar issues. But that being said, do you know why |
So we have one client config and another server config. It will be run in one instance of webpack. The clean webpack is ran in the client config while the server config has something called WaitPlugin (using Make hooks) that waits for client manifest file to complete (client manifest is ran on emit) Since server compilation is usually faster, theres a high chance the wait plugin on server already detect that client manifest has been built (from previous build) but later on the client clean webpack plugin deleted it, hence causing an error. I think this is too specific for our use case. Technically we can just run both config sequentially but we dont want that for now. Edit & update: it's not working for us because one of our plugin is using |
Any update on this?
remove @types/wepback from dependencies please |
This is a major version bump because the
@types/webpack
have been removed, andcleanOnceBeforeBuildPatterns
uses the compile hookafterCompile
instead ofemit
so plugin order should no longer matter.Also enables async removal of files for webpack 4+.
Miscellaneous package maintenance such as package upgrades done as well.
Closes: #127, #150, #155, #163