webpack --watch isn't compiling changed files

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

    I am adding another answer because I believe that this is the best solution so far. I am using it every day and it rocks! Just install this library :

    https://github.com/gajus/write-file-webpack-plugin

    Description : Forces webpack-dev-server program to write bundle files to the file system.

    How to install :

    npm install write-file-webpack-plugin --save-dev
    

提交回复
热议问题