Closed ChrisRAoW closed 6 years ago
I really, really like this option. I have noticed many times that things end up in a weird state when a build fails.
Obviously, it's not the right choice some of the time, but sometimes you really need it.
awesome addition. thank you!
You're welcome. Happy to contribute.
Currently the files are removed at the beginning of the compiliing process. For production environments that isn't really what you want, because:
So basically you want the old assets to be cleaned just before the new files are emitted to the output dir.
This PR does exactly that by using the event hook of the compiler named "emit".
The only thing you have to do is setting "beforeEmit" to true in the options.