Webpack-dev-server compiles files but does not refresh or make compiled javascript available to browser

前端 未结 11 1797
-上瘾入骨i
-上瘾入骨i 2020-12-04 16:51

I\'m trying to use webpack-dev-server to compile files and start up a dev web server.

In my package.json I have the script property set to:



        
11条回答
  •  离开以前
    2020-12-04 17:15

    I had the same problem and I find that in addition to all those points, we also have to put the index.html together with the output bundle.js in the same folder and set the contentBase to this folder, either the root or a subfolder.

提交回复
热议问题