Commit 7fcca1c
committed
bug #772 Setting CleanWebpackPlugin's cleanStaleWebpackAssets: false (weaverryan)
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: false1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments