brickspert / blog

个人技术博客,博文写在 Issues 里。
4.07k stars 548 forks source link

webpack-dev-server设置了port:8081,但是无法访问 #21

Closed 1048034876 closed 5 years ago

1048034876 commented 5 years ago

devServer: { port: 8081, contentBase: path.join(__dirname, './dist') } 设置了port,webpack-dev-server启动以后,也提示running at http://localhost:8081/,但是打开页面,是cannot get /