docs我正在开发一个有角度的2网站,当导入我的index.html
中的css文件或js文件时,没有加载任何内容,当我检查网络流量时,我发现这些资源是找不到(404未找到)。我确信路径是正确的。甚至找不到项目的图像。
我想在索引中导入我的资源而不是angular-Cli.Thx来帮助
这是我的索引:
<html>
<head>
<link href="./app/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="./app/css/metisMenu.min.css" rel="stylesheet">
<!-- Timeline CSS -->
<link href="./app/css/timeline.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="./app/css/startmin.css" rel="stylesheet">
<!-- Morris Charts CSS -->
<link href="./app/css/morris.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="./app/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- calendar css-->
<link href="http://www.bootstrap-year-calendar.com/download/v1.1.0/bootstrap-year-calendar.min.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<title>Byblos</title>
<base href="/">
<script src="./app/js/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="./app/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="./app/js/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="./app/js/startmin.js"></script>
<link href="./app/css/jquery.growl.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./app/organigramme/demo/js/jquery/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="./app/organigramme/demo/js/primitives.min.js"></script>
<link href="./app/organigramme/demo/css/primitives.latest.css?3706" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="./app/organigramme/demo/js/jquery/ui-lightness/jquery-ui-1.10.2.custom.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>
<div class="loading">Loading…</div>
</app-root>
</body>
</html>
这是我的package.json
:
{
"name": "byblos",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@ngui/auto-complete": "^0.13.2",
"angular-datatables": "^4.0.0",
"angular2-froala-wysiwyg": "^2.5.1-2",
"core-js": "^2.4.1",
"datatables.net": "^1.10.15",
"datatables.net-dt": "^1.10.15",
"jquery": "^3.2.1",
"ngx-bootstrap": "^1.6.6",
"primeng": "^4.0.0-rc.5",
"rxjs": "^5.1.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/cli": "1.0.1",
"@angular/compiler-cli": "^4.0.0",
"@types/datatables.net": "^1.10.1",
"@types/jasmine": "2.5.38",
"@types/jquery": "^2.0.41",
"@types/node": "~6.0.60",
"codelyzer": "~2.0.0",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.0"
}
}