webpack-dev-server 插件运行 8080端口 报错 can not get

通过打开浏览器结果如下

img

webpack.config.js 和 package.json 的代码

img

无法打开public目录
webpack-dev-server默认静态目录是public
可以使用 --static src 指定静态目录为src
--static [value...] Allows to configure options for serving static files from directory (by default 'public' directory).

参考文档