【发布时间】:2015-01-05 15:10:09
【问题描述】:
Bower 和 main-bower-files 非常棒,但是,当将它们与 Angular Bootstrap UI 一起使用时,安装/包含的东西比需要的要多。
基本上:Angular Bootstrap UI,取代了 bootstrap.js 的需要和它的 jquery 依赖。但是,在安装 bootstrap 时,会安装 jquery,然后使用 main-bower-files 的 gulp 任务在我的 html 文件中包含 jquery 和 bootstrap.js。
有没有办法告诉 bower 和/或 main-bower-files 和/或 Bootstrap,不再需要 jquery 和 bootstrap.js。
到目前为止,我尝试在 bower_components/bootstrap/bower.json 中注释 jquery 依赖项和 dist/js/bootstrap.js 行,但这些文件仍然包含在内。
【问题讨论】:
标签: angular-ui-bootstrap gulp bower