-
-
Notifications
You must be signed in to change notification settings - Fork 310
No styles after running build process #211
Comments
And your styles are not being copied to the hidden folder |
@oskarrough - Emailed the archive to you. It's a fresh build of webapp, just run |
Okay @oskarrough and I fixed it via email. For anyone who has this error, it's a Compass issue. Check your Ruby (
Searching the internet a bit, I found a related issue. Next, I ran the following command to uninstall rubygems-bundler from the global scope:
This allowed All good now homies. |
I am getting this same behavior, however I get no errors when running the version commands you mentioned: $ ruby -v $ sass -v $ compass version Any other ideas on how to fix? |
@ecurtis - Run |
Thank you for the quick response. Here are the results: CFPropertyList (2.2.5, 2.2.4, 2.2.0) |
@ecurtis - I think it might be because you have 2 versions of SASS installed ( |
Thank you for the suggestion, however that did not solve it. Here is the updated gem list: |
@ecurtis - Interesting. Check if it's a fault on the SASS level by running |
I will dive into some more tomorrow. I take it that a fresh install of the generator works well for you. Are you on OS X? If so which version? Also which version of sass, compass, and ruby are you running? |
Ruby |
I ran npm update -g and now while I get the error it is outputting the css to the dist folder. So I guess we are good to go! In case it is of interest prior to running the npm update, it was outputting some css, but not the: @import 'sass-bootstrap/lib/bootstrap'; So most styles were off. Thank you for your help. Cheers. |
I am having this issue too. I'm at a complete loss; any help would be greatly appreciated!
The following works fine:
However, I get the issue just like Hayden described. Here is my grunt --debug --verbose output for cssmin:
What is perplexing to me is that after building I get a file: dist/styles/eec6e6bc.main.css. If I change the app/index.html file to point the main.css to eec6e6bc.main.css all the styling works! Possibly related, is that if I look at the console log for any 404s this returns a 404: /styles/vendor.css. But, I don't see any files vendor.css. Any thoughts? |
👍 Has anyone figured out a way to fix this? |
I'll investigate. |
Make sure your packages are up to date, worked for me
also, yeoman
|
We have a pending PR which updates all deps, I just have to test it first. |
Just released v0.6.0, lots of things has changed and this should work now. I'll reopen if you are still experiencing issues with this. |
I just used the generator-webapp to generate a new app with bootstrap only and first it looks fine, grunt:serve works as expected. But when I build the project the Bootstrap CSS seems to miss and the web page is displayed like on the screenshot of the first post here. I updated everything to the latest version but could not figure out what's wrong. Can anyone help me? |
Does this happen with the fresh install? Did you modify your |
I did a fresh install, just "yo webapp", selected bootstrap only and then did a "grunt serve" (which works well) and then a "grunt" or "grunt build". This results into an empty "vendor.XXX.css" file. When I replace this file with the original "bootstrap.css" everything is fine. Here is a list of my installed versions: |
Thanks for reporting. The solution is very simple, change this line: <!-- build:css styles/vendor.css --> to this: <!-- build:css(.) styles/vendor.css --> |
Thank you very much, works now! |
I'm having this same problem. I just created a new project using 'yo angular StockDog' and the CSS is not found for the default app. (I'm going through 'Professional AngularJS -> Wrox) During set up, I did not include Sass w/Compass, but did select to use Bootstrap. index.html has the correct build:ccs line (I didn't have to change it):
|
This is an issue with generator-angular then, not generator-webapp. |
Ok thanks. I'll move the discussion over there. |
Thank you @silvenon, your solution works. But ... all vendors images path are broken... Any solution ? EDIT : i use dw-bxslider-4 and fontawesome. And my generated vendor.css contains wrong image and font path |
@TeChn4K unfortunately you'll have to do some hacking to fix these paths, this is not really something we can solve. gulp-replace might be helpful. |
OK thank you, i'll give it a try. |
StackOverflow is great for these kinds of questions, with tags |
I'm having an issue where, after running either
grunt
(and manually openingdist/index.html
) orgrunt serve
, styles aren't being copied to thedist
folder, which results in no styles being applied to the page. I've detailed the build log in this gist. There's a prominent error at line 116:The closest issues I've found so far (but not the same) are:
Also, I'm running the latest version of
yo
andgenerator-webapp
on Mac OSX 10.9.The text was updated successfully, but these errors were encountered: