【问题标题】:how to add Bootstrap into lineman ember template如何将 Bootstrap 添加到 lineman ember 模板中
【发布时间】:2014-06-19 22:40:49
【问题描述】:

我刚刚安装了 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 文件中,但我无法在生成的文件夹中找到相同的文件。

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

【问题讨论】:

    标签: node.js ember.js gruntjs frontend linemanjs


    【解决方案1】:

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

    app/css/**/*.css 
    

    &

    vendor/css/**/*.css
    

    到:

    generated/css/app.css
    

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

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

    【讨论】:

    • 我有 2 个文件 app/css 文件夹,分别命名为 main.less、style.less 但此内容未在 app.css 文件中生成,请帮帮我..
    【解决方案2】:

    只要运行:

    yourProject>lineman fetch bootstrap
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-17
      • 1970-01-01
      • 2012-09-18
      • 1970-01-01
      • 2016-12-23
      • 1970-01-01
      • 2011-08-15
      • 1970-01-01
      相关资源
      最近更新 更多