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

前端 未结 6 885
渐次进展
渐次进展 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:51

    In my case I had to check where the webpack is serving the file.

    You can see it: http://localhost:8080/webpack-dev-server

    Then I could see my bundle.js path > http://localhost:8080/dist/bundle.js

    After that I used that /dist/bundle.js in my index.html

    Now it refreshes any file changes.

提交回复
热议问题