Webpack-dev-server not bundling even after showing bundle valid message

前端 未结 6 718
渐次进展
渐次进展 2021-02-02 08:22

I\'ve set up a basic react application with webpack but I couldn\'t get the webpack-dev-server running properly.

I\'ve installed webpack-dev-server

6条回答
  •  借酒劲吻你
    2021-02-02 08:56

    By the way, started from Webpack v4 it is possible to write in-memory assets to disk:

      devServer: {
        contentBase: "./",
        port: 8080,
        writeToDisk: true
      }
    

    See doc.

提交回复
热议问题