shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

Removing old files when compiling #20

Closed rasmuswoelk closed 8 years ago

rasmuswoelk commented 8 years ago

Hi

I'm using your plugin for versioning on my site but after a lot of saves I get a lot of cached files in my build-folder, which goes to github.

I'm kinda new to webpack but I was hoping there is some solution that deletes all files in the folder when it generates new hashed-files. Is is possible in some way?

Thanks!

danethurber commented 8 years ago

personally i use this https://github.com/johnagan/clean-webpack-plugin but there might be other options. hope it helps

rasmuswoelk commented 8 years ago

Thanks!

AGuyCoding commented 7 years ago

@danethurber but doesnt this remove the whole folder? doesnt make this the whole "chunkhash blabla" in the filename obsolete? So the browser has to load ALL again? Am i wrong?


Edit: Ahh i see, it removes the whole folder but it generates new files but with "old" hashes in the name, exept this files which was altered!