Skip to content

Commit

Permalink
Add wiredep workaround to Bootstrap v3.3.5 post
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Jun 22, 2015
1 parent 857342c commit 87b41f8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _posts/2015-06-15-bootstrap-3-3-5-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ Since we last shipped a release, we made an official Slack for folks to hang out

**[Sign up here](https://bootstrap-slack.herokuapp.com/)** to join.

## wiredep and Bower
Due to vagueness in Bower's specification, wiredep made some questionable assumptions about how the `main` field in `bower.json` works. Recently, [Bower updated their spec to address this and clarify how `main` should work](https://github.com/bower/bower.json-spec/pull/43), and we [updated our `bower.json` accordingly](https://github.com/twbs/bootstrap/pull/16359). Unfortunately, [wiredep broke as a result](https://github.com/twbs/bootstrap/issues/16663) if you were using it with Bootstrap's vanilla precompiled CSS. Bower is [working to further update their spec](https://github.com/bower/bower.json-spec/issues/47) to address this problem and better assist tools like wiredep.

In the meantime, a quick-and-dirty workaround to get wiredep to work with Bootstrap again is to add the following to your project's `bower.json`:
```json
"overrides": {
"bootstrap": {
"main": [
"dist/js/bootstrap.js",
"dist/css/bootstrap.css",
"less/bootstrap.less"
]
}
}
```

## Download Bootstrap

Download the latest release—source code, compiled assets, and documentation—as a ZIP file directly from GitHub:
Expand Down

1 comment on commit 87b41f8

@stephenplusplus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Main files required to use your package." Not sure what assumptions wiredep made. Regardless, thanks for including this and working to improve the bower spec.

Please sign in to comment.