You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the master branch.
Discussion
----------
Setting CleanWebpackPlugin's cleanStaleWebpackAssets: false
There is currently a bug where, on a "watch" rebuild, sometimes an image that's referenced from a CSS file won't be "noticed" and will be mistakenly deleted.
Reproducer: https://github.com/weaverryan/clean_webpack_assets_watch_bug
I haven't had time yet to "distill" that reproducer down to a raw `webpack.config.js` file (without Encore) so that I can submit an issue. But, since this behavior can be quite damaging (I was pulling out my hair trying to figure out why an image file was there sometimes and gone other times) and because the `cleanStaleWebpackAssets` is so *minor* (it removes extra files on `watch` rebuilds), I think we should just disable it by default.
Commits
-------
39e4619 Setting CleanWebpackPlugin's cleanStaleWebpackAssets: false
0 commit comments