gajus / write-file-webpack-plugin

Forces webpack-dev-server to write bundle files to the file system.
Other
527 stars 54 forks source link

Wipe folder before usage #31

Open ghost opened 7 years ago

ghost commented 7 years ago

Would be nice if the folder which contains the temp files would be wiped after each call.

valoricDe commented 7 years ago

Or maybe the package.json could be scanned for a pre and post WriteFileWebpackPlugin script. And the script would be executed. Then oneself could decide what to execute before and after the files have been saved. My usecase for the post script would be a "git add myPublicFolder"

jonathan-s commented 7 years ago

+1

gajus commented 7 years ago

Would be nice if the folder which contains the temp files would be wiped after each call.

Whats the reason you cannot use https://github.com/johnagan/clean-webpack-plugin?