Skip to content

Conversation

@weaverryan
Copy link
Member

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.

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.
Copy link
Collaborator

@Lyrkan Lyrkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably related to #771

@weaverryan weaverryan merged commit 7fcca1c into symfony:master May 14, 2020
@weaverryan weaverryan deleted the disable-clean-stale-option branch May 14, 2020 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants