On the problem of using content-base error

On the problem of using content-base error

Problem:
"dev": "webpack-dev-server --open --port 3000 --content-base src --hot"
error when executing npm run dev

Solution: In the new version of webpack-dev-server, because the content-base parameter is cancelled, just delete the content-base src, or use a lower version of webpack-dev-server;

Guess you like

Origin blog.csdn.net/weixin_43236062/article/details/91043349