webpack --watch isn't compiling changed files

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

    I have the same issue. And I notice it's not compiling because my folder contains some character(*). And using the old watcher plugin seems to resolve the issue. Add this line to your webpack config file.

    plugins: [
        new webpack.OldWatchingPlugin()
      ]
    

提交回复
热议问题