webpack --watch isn't compiling changed files

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

    I came across this question when I was having a similar issue-- it appeared that webpack was not rebundling, even when running webpack --config.

    I even deleted bundle.js and the webpage was still displaying as before my edits.

    For those of you who get this same problem, I finally did the 'empty cache and hard reload' option in chrome (right click the reload button with the devtools open) and that did that trick

提交回复
热议问题