我刚刚将我的项目从 Angular 2.4.7 和 Angular CLI 1.0.0-beta.31 升级到 Angular 4.0.0 和 Angular CLI 1.0.0。自升级以来,我收到以下错误:
font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
material-icons.css Failed to load resource: the server responded with a status of 404 (Not Found)
global-styles.css Failed to load resource: the server responded with a status of 404 (Not Found)
hammer.js Failed to load resource: the server responded with a status of 404 (Not Found)
这些与下面我的 index.html 中的脚本引用有关。自升级以来我没有更改结构,有人知道我为什么会收到这些错误吗?
索引.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tellurium Platform</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="./app/library/css/font-awesome.min.css">
<link rel="stylesheet" href="./global-styles.css">
<link rel="stylesheet" href="./app/library/css/material-icons.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<!--For Material 2 slider elements-->
<script src="./app/library/js/hammer.js"></script>
</head>
<body class="canvas">
<app-root>Loading...</app-root>
</body>
</html>