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

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

    In my case I was using VS Code and I had to restart it. I have noticed that vs code bugs up sometimes. The changes you make in configuration files (package.json, webpack.config.js etc.) do not take effect sometimes. So, in case you encounter a situation where something doesn't work even with the correct settings, just restart vs code.

    I can't see any bug reports related to this. So that's strange. I'm thinking this bug is triggered if you change one of the configuration files some time later after you have already built the project multiple times.

    If this is actually what's happening then it's a huge bug. I'll try switching to Visual Studio instead of Code and see if this still happens. If it does then it's probably an issue with webpack.

提交回复
热议问题