Grunt Serve:dist - 无法加载资源:服务器响应状态为404?

时间:2016-05-25 15:21:29

标签: javascript gruntjs yeoman yeoman-generator-angular gruntfile

每当我提供grunt serve的输出文件:我使用yeoman制作的角度项目的dist时,我在index.html时在控制台中出现404错误。

我甚至还更改了Gruntfile.js中的全局路径,但仍遇到以下错误。

Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.scss Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular/angular.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-animate/angular-animate.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-aria/angular-aria.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:35729/livereload.js?snipver=1 Failed to load resource: net::ERR_CONNECTION_REFUSED
http://0.0.0.0:9000/bower_components/angular-cookies/angular-cookies.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-messages/angular-messages.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-resource/angular-resource.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-route/angular-route.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-sanitize/angular-sanitize.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-touch/angular-touch.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-material/angular-material.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-ui-router/release/angular-ui-router.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/app.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/controllers/LayoutCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/scripts/controllers/SidebarCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/views/Notification/NotificationCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/views/News/NewsCtrl.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/bower_components/angular-material/angular-material.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://0.0.0.0:9000/styles/application.scss Failed to load resource: the server responded with a status of 404 (Not Found)

以下是我Gruntfile.js

的链接

0 个答案:

没有答案