webpack --watch isn't compiling changed files

后端 未结 30 1105
眼角桃花
眼角桃花 2020-12-02 06:00

I tried running webpack --watch and after editing my JS files, it doesn\'t trigger an auto-recompilation.

I\'ve tried reinstalling webpack

30条回答
  •  臣服心动
    2020-12-02 06:19

    If your code isn't being recompiled, try increasing the number of watchers (in Ubuntu):

    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    

    Source: https://webpack.github.io/docs/troubleshooting.html

提交回复
热议问题