【发布时间】:2016-06-14 21:22:24
【问题描述】:
我使用 Angular CLI 构建了我的第一个 Angular2 应用程序。我正在尝试使用 twitter Bootstrap 模块,但找不到它:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:4200/node_modules/bootstrap/dist/css/bootstrap.css
我有一个 index.html,在
中有以下行<link href="site.css" rel="stylesheet">
然后我在 ./public/site.css 中也有一行:
@import 'node_modules/bootstrap/dist/css/bootstrap.css';
Bootstrap 模块存在于 ./node_modules/bootstrap/dist/css/.. 但它仍然找不到它。关于我做错了什么有什么想法吗?
【问题讨论】: