webpack --watch isn't compiling changed files

后端 未结 30 1064
眼角桃花
眼角桃花 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:24

    If you are using Vim you should try setting backupcopy to yes rather than the default auto. Otherwise Vim will sometimes rename the original file and create a new one, which will mess up with webpack watch:

    https://github.com/webpack/webpack/issues/781

    Just add this to your vim settings if this is the case:

    set backupcopy=yes

提交回复
热议问题