Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Empty 'dist/styles/**.main.css' file #193

Closed
vkammerer opened this issue Apr 30, 2013 · 10 comments
Closed

Empty 'dist/styles/**.main.css' file #193

vkammerer opened this issue Apr 30, 2013 · 10 comments

Comments

@vkammerer
Copy link

Hello Yeoman community,

When running the build task on a newly created project, the generated file 'dist/styles/**.main.css' contains only the following code:

/* Will be compiled down to a single stylesheet with your sass files */

instead of containing the Twitter Bootstrap code.

I have tried to debug it and could see that the 'concat' task seems to be responsible for this bug (when commenting out the 'concat' task, the output is correct).

Steps to reproduce:

  • generate angular app ('yo angular')
  • run default task ('grunt')

My OS: Mac OS X 10.8.3

@rodolphe
Copy link

I am running into the exact same problem. Also, oddly enough, when you run the individual grunt tasks that make up grunt build the process works as predicted (I think).

@rodolphe
Copy link

rodolphe commented May 1, 2013

I edited the grunt build task and moved 'concat' to before 'imagemin' and now grunt build works properly and main.css is properly generated.

@hermanschutte
Copy link

Thanks @rodolphe this fixed the issue for me as well.

@vkammerer
Copy link
Author

It fixed it for me as well thank you @rodolphe !

@hsablonniere
Copy link
Contributor

Same problem here. Should I provide a pull request ?

@passy
Copy link
Member

passy commented May 5, 2013

@hsablonniere That would be great.

@stefek99
Copy link

stefek99 commented May 6, 2013

Oddly enough it works for me as well!

Could you please explain how shuffling around jobs is making it work? :)

moved 'concat' to before 'imagemin'

@alvincrespo
Copy link

I'm still having this issue even with @rodolphe solution :(

I've double checked that my version is the same as the pull request provided here as well.

@alvincrespo
Copy link

nvm I had a wrong configuration on my end with compass, while trying to debug. The solution by @rodolphe worked for me!

Thanks!

@passy passy closed this as completed in 4c7e4b2 May 7, 2013
@natebrunson
Copy link

Anyone know why concat is trying to modify the css file at all? As far as I can see from the concat configuration is that it should only be operating on js files... Thoughts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants