angularJS 用户如何处理 - 使用 bootstrap css/fonts 但排除 jquery 控件 - 场景

how do angularJS user handle - using bootstrap css/fonts but exclude the jquery controls - scenario

我正在使用 angularjs 和 angularjs ui bootstrap 模块。

我也在使用 bower 包 bootstrap-css-只是因为我不需要 jquery bootstrap 插件。我只想要 boostrap-css-only.

但是我还有其他依赖于 bootstrap 包的 bower 包,每当我更新那些依赖于 bootstrap 包的包时,它们都会安装最新的 bootstrap 包,包括 jquery 我不需要的东西。

这意味着所有 bootstrap 内容 + bootstrap css 仅加载到我的浏览器中!!!

如何防止这种情况发生?我无法从其他 bower 包依赖项配置中删除条目 'bootstrap',例如 textAngular:

 "dependencies": {
    "angular": "^1.2.x",
    "bootstrap": "^3.0.x",
    "font-awesome": "^4.0.x",
    "rangy": "^1.2.0"
  },

textAngular 不依赖于 bootstrap-css-only。哦,是的,我可以将上面的 bootstrap 更改为 bootstrap-css-only 但在下一次 textAngular 更新时它消失了......我忘记了......

这是 permanently ignore a dependency with bower, but the accepted answer is probably not what you are looking for, I actually think this answer is more what you want:

的副本

仅供参考:对于 textAngular 的情况,最新版本已更改为 bootstrap-css-only https://github.com/fraywing/textAngular/blob/v1.3.4/changelog.md https://github.com/fraywing/textAngular/issues/527