【问题标题】:How to use bootstrap v4 scss version in bower project如何在 bower 项目中使用 bootstrap v4 scss 版本
【发布时间】:2016-09-10 00:15:18
【问题描述】:

我一直在使用 SASS/SCSS 版本的 bootstrap #3.3.6,但现在在 bootstrap 站点中,他们说他们现在发布了第 4 版。

我到处都在了解如何在任何项目中使用 bootstrap v4(非 scss),但我在任何地方都没有了解如何在 bower 项目中使用 bootstrap v4 的 scss 版本。

Bootstrap 完全从 less 转移到 scss,使用带有许多新功能的新 bootstrap 的 scss 版本会很棒。

【问题讨论】:

    标签: css twitter-bootstrap sass bower


    【解决方案1】:
    $ bower install bootstrap#v4.0.0-alpha.2
    

    您可以在此处查看有关使用 bower 获取 bootstrap 4 的完整信息:http://v4-alpha.getbootstrap.com/getting-started/download/

    【讨论】:

      【解决方案2】:

      在我的 bower.json 中,我通过以下方式包含它:

      "dependencies": {
          "bootstrap": "v4.0.0-alpha.6",
      }
      

      然后只需在 main.scss 中包含 bootstrap.scss,可能您必须调整 bower_components 文件夹的路径。

      【讨论】:

        猜你喜欢
        • 2016-01-14
        • 2017-01-11
        • 2017-03-05
        • 1970-01-01
        • 2020-02-07
        • 1970-01-01
        • 2014-02-10
        • 1970-01-01
        • 2014-04-22
        相关资源
        最近更新 更多