How to automatically remove *.hot-update.json files when using react-hot-loader package?

3.1k views Asked by At

I have a series of hot loader files (*.hot-loader.json) building up in my output directory. How can I ensure that this output directory cleans out the unecessary files?

Note: I am also using Webpack.

1

There are 1 answers

2
Ben Creasy On

Use webpack-middleware-dev, as these files will be loaded in memory rather than on disk.

webpack-dev-server uses webpack-middleware-dev automatically.