【问题标题】:not working the change of bower's default components folder无法更改 Bower 的默认组件文件夹
【发布时间】:2016-02-16 16:53:41
【问题描述】:

我已经厌倦了更改 bower 默认文件夹。我创建了两个文件

1. .bowerrc.json 2. bower.json

.bowerrc.json文件的内容

{
  "directory": "Vendors"
}

以及 bower.json 文件的内容

{
  "name": "Sardar",
  "description": "Human Resource Management System",
  "main": "index.html",
  "moduleType": [],
  "keywords": [
    "AngularJS"
  ],
  "authors": [
    "Md. Shohel Rana"
  ],
  "license": "Restrict",
  "homepage": "",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery": "^2.2.0"
  }
}

两者都是同一个根。当我运行命令bower install 时,它将所有内容安装在名为 bower_components 的文件夹中。但需要安装到不工作的供应商文件夹中。谢谢你的时间。

【问题讨论】:

    标签: bower bower-install


    【解决方案1】:

    只需从 .bowerrc.json 文件中删除 .json 扩展名 再次运行bower install

    【讨论】:

      猜你喜欢
      • 2023-04-09
      • 2013-07-26
      • 1970-01-01
      • 2016-05-30
      • 1970-01-01
      • 2023-03-23
      • 2010-09-08
      • 1970-01-01
      • 2013-01-07
      相关资源
      最近更新 更多