【问题标题】:Adding new dependency in bower on sage wordpress theme在 sage wordpress 主题的凉亭中添加新的依赖项
【发布时间】:2017-01-30 15:05:05
【问题描述】:

我正在尝试在 sage wp 主题中添加新的凉亭组件,唯一的问题是我只能在 sass 中添加许多?

这是我的 bower.json

{
  "name": "sage",
  "homepage": "https://roots.io/sage/",
  "authors": [
    "Ben Word <ben@benword.com>"
  ],
  "license": "MIT",
  "private": true,
  "dependencies": {
    "bootstrap-sass": "3.3.7",
    "pushy": "1.0.0",
    "fullpage.js": "2.9.2"
  }
}

但是在 ma​​in.scss 中什么都没有添加?

// Automatically injected Bower dependencies via wiredep (never manually edit this block)
// bower:scss
@import "../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss";
// endbower  

【问题讨论】:

    标签: wordpress roots-sage


    【解决方案1】:

    当您运行 bower install 命令时,您必须将 --save 标志添加到它的末尾以更新所有内容。

    【讨论】:

      猜你喜欢
      • 2014-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-04
      • 2018-05-30
      • 1970-01-01
      相关资源
      最近更新 更多