【发布时间】:2017-08-12 02:49:57
【问题描述】:
我正在运行 github 上提供的 Angular4 Webpack 入门样板代码(位置 => https://github.com/AngularClass/angular-starter)。
在使用“npm start”命令运行应用程序时,应用程序而不是打开http://localhost:3000 浏览器打开文件位置http://c/Users/Public/。我还在我的控制台上看到了以下令人困惑的声明(请参阅最后两行“内容不是来自 webpack **”和“404s will fallback**”)
不确定 webpack 为何打开文件位置以及如何解决日志中的歧义。 (请注意,如果我手动输入 http://localhost:3000 示例确实有效。)
10% building modules 2/2 modules 0 active
Project is running at http://C:\Users\Public/
webpack output is served from /
Content not from webpack is served from C:\wrksp\code\AngularTS\WebpackStarter\src
404s will fallback to /index.html
【问题讨论】:
标签: angular