I'm using Yeoman for a simple site. When I look at the Resources pane in Chrome, I see jQuery is being included twice (which breaks some needed Bootstrap js)
Bower list outputs this:
├─┬ bootstrap#3.0.0 │ └── jquery#1.10.2 (2.0.3 available) ├── jquery#1.10.2 (latest is 2.0.3) ├── modernizr#2.6.2 ├── requirejs#2.1.8 └─┬ sass-bootstrap#3.0.0 └── jquery#1.10.2
I've tried bower uninstall on bootstrap, sass-bootstrap, jquery, doesn't seem to help.
This is completely correct. Both bootstrap
and sass-bootstrap
depend on jQuery. Bower has a flat hierarchy, so there is no duplication and since both require jquery#~1.10
, there isn't even a version conflict.
That said, including both bootstrap
and sass-bootstrap
doesn't make much sense, because the latter is just the SASS'ified version of the former and thus works as a complete replacement.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.