Webpack --watch and launching nodemon?

后端 未结 8 1534
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 10:51

Thanks to an excellent answer by @McMath I now have webpack compiling both my client and my server. I\'m now on to trying to make webpack --watch be useful. Ideally

8条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 11:41

    Assuming nodemon server.js touch the server.js file afterEmit:

    // webpack.config.js
    
    module.exports = {
      // ...
      plugins: [
        // ...,
    
        // 

提交回复
热议问题