0

我刚刚安装了 lineman 并从下面的 URL 克隆了 ember 模板。

https://github.com/linemanjs/lineman-ember-template

然后只需在 pages/index.us 文件上添加引导 css

<link rel="stylesheet" type="text/css" href="css/bootstrap.css" media="all" />

我在 bootstrap.css 上收到 404 错误,文件在 app/css/bootstrap.css 文件中,但我无法在生成的文件夹中找到相同的文件。

任何人都可以在这方面提供帮助。

4

2 回答 2

1

赶紧跑:

yourProject>lineman fetch bootstrap
于 2015-11-10T15:16:03.187 回答
0

默认情况下,lineman 连接以下内容:

app/css/**/*.css 

&

vendor/css/**/*.css

到:

generated/css/app.css

所以从技术上讲,你应该只需要generated/css/app.css在你的 html 中包含,并且应该包含 Bootstrap。

我建议将 Bootstrap 添加到vendor/css文件夹中。

于 2014-06-23T20:44:39.743 回答