webpack --watch isn't compiling changed files

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

    It wasn't recompiling for me but then I realized / remembered that webpack watches the dependency graph and not just a folder (or files). Sure enough the files I was changing weren't part of that graph yet.

提交回复
热议问题