【问题标题】:Installing bootstrap-sass and bootswatch with Bower使用 Bower 安装 bootstrap-sass 和 bootswatch
【发布时间】:2016-04-16 08:19:17
【问题描述】:

bower i --save bootstrap-sass bootswatch 也安装引导程序。 所以当我wiredepindex.html 有两个bootstrap.js。 喜欢...

    <!-- bower:js -->
    <script src="/bower_components/jquery/dist/jquery.js"></script>
    <script src="/bower_components/bootstrap/dist/js/bootstrap.js"></script>
    <script src="/bower_components/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
    <!-- endinject -->

如何只安装 bootstrap-sass?


我正在使用凉亭 1.7.9

【问题讨论】:

    标签: installation bower bootstrap-sass


    【解决方案1】:

    permanently ignore a dependency with bower

    我在那里找到了答案。我添加了 .bowerrc 和

    {
      "ignoredDependencies": [
        "bootstrap",
        "bootstrap-sass-official"
      ]
    }
    

    然后它在安装bootswatch时跳过了bootstrap

    在 .bower.json 中添加 override 无效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-05
      • 2015-09-25
      • 2016-09-16
      • 1970-01-01
      • 2014-01-27
      相关资源
      最近更新 更多