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 best solutions below

2
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.