-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Problem getting bootstrap.css to be included using wiredep #1116
Comments
I'm having the same issue under windows |
me too,how to deal with this problem? before i used it's ok. |
ditto! but found this a great way of getting to understand yeoman :) |
It's something wrong with bower. I put the bootstrap.css on bower components, but grunt remove after few seconds: < ! -- bower:css -- > < link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" / > I don't know about bower to correct the script, but create a another css before bower:css < ! -- build:css(.tmp) styles/manualvendor.css -- > < link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" / > < ! -- endbuild -- > |
I'm having the same problem. |
Me too. |
+1 same problem, apparently they removed css from bower.json "main": [ |
Some temp fixes and causes listed here: Some Bootstrap bower.json changes broke wiredep insertions. |
Bootstrap v3.3.5 will break and delete the bootstrap.css include. Downgrading to v3.3.4 as a dependency will fix this! I tore my hair out trying to figure out the issue! |
Boostrap 3.3.5 is replaced with Boostrap 3.0.0 for me... |
This worked for me: http://stackoverflow.com/questions/30946498/yeoman-and-bower-not-adding-bootstrap-css-angular-generator Something is wrong with matching versions |
Uh well this is interesting. Setting the version of Bootstrap to 3.3.4 for now. @stephenplusplus @sindresorhus ideas? |
+1 This was driving me mad until I found the workaround mentioned. |
@eddiemonge thanks. it works for me. |
+1 I did not find the answer and I removed all and wrote my code myself |
Should be fixed in 0.12.0 |
@WayneRiesterer comment worked for me. |
In index.html, link bootstrap file
|
@mymai91 that code is removed once you run grunt. |
I am runing |
@sean-madhavan you are right |
@WayneRiesterer I'm using Bootstrap 3.3.6 and your solution worked very well, thank you :) |
the problem persist using gulp, grunt ok |
@WayneRiesterer your solution worked for me, this is my bower.json {
"name": "testapp",
"private": true,
"version": "0.1.0",
"dependencies": {
"bootstrap": "~3.x.x",
},
"overrides": {
"bootstrap": {
"main": [
"dist/js/bootstrap.js",
"dist/css/bootstrap.css",
"less/bootstrap.less"
]
}
}
} |
Any work-around for gulp, tried various suggestion and none of them work for gulp. |
wiredep has problems to autoinclude bootstrap 3.3.5 yeoman/generator-angular#1116
I did the following selections and it worked for me: |
@WayneRiesterer solution worked for me. |
@WayneRiesterer solution worked for me. |
@WayneRiesterer your solution worked for me, this is my bower.json { yeah this work as well for me |
Seems to work fine with the latest version of yeoman-angular (using grunt), |
got the same issue on windows... |
I put : |
I have added "bootstrap-sass-official": "~3.1.0", at top of dependencies, everything work awesome. e.g.
|
Not ideal, but I rolled back to BS version 3.3.4 and setting up like this:
|
Just switched to bootstrap 3.3.4 and it worked. Oohh ... |
Ohh. Changing to 3.3.4 Did the Trick. Thank you so much.! |
@WayneRiesterer's solution also works for bootswatch with slight modification: "overrides": {
"bootswatch-dist": {
"main": [
"js/bootstrap.js",
"css/bootstrap.css",
"bootstrap.less"
]
}
} |
Hi guys, you can still use latest version of bootstrap 3.3.7 . You need to modify bower.json located inside bootstrap folder. Need to add key "overrides and specify bootstrap.css location. Here is mine content |
Wiredep works by looking at the bower.json file inside the bower packages file. In this case bower_components/bootstrap/bower.json Open bower_components/bootstrap/bower.json and change:
to
If you want to use the bootstrap theme css as well:
|
When I create a project using:
yo angular
no to compass, yes to bootstrap.
running on ubuntu server 14.04
Everything runs through smooth. I can start up the server with grunt serve but I am presented an unstyled page like this:
The header of html looks like:
So, no link rel to the bootstrap main css. When I run the grunt build I dont get anything either.
The output of grunt wiredep --verbose --debug is:
In the same machine if I start using the webapp generator everything works as expected.
Any idea why it is like this?
The text was updated successfully, but these errors were encountered: