How to automatically delete * .hot-update.json files when using the "hot-loader" package?

I have a series of hotloader files (* .hot-loader.json) created in my output directory. How can I guarantee that this output directory will clear junk files?

Note. I also use Webpack.

+4
source share
2 answers

Use webpack-middleware-devas these files will be loaded into memory, not onto disk.

webpack-dev-serverautomatically uses webpack-middleware-dev.

0
source

Change to your output directory (it is assumed that this is / dist, unless you change it to yours), and then:

    cd src / dist
    sudo rm * .hot-update.json
0
source

Source: https://habr.com/ru/post/1666017/


All Articles