Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.scss compiling on server, but not on build (solution) #348

sillero opened this issue Sep 11, 2012 · 15 comments

main.scss compiling on server, but not on build (solution) #348

sillero opened this issue Sep 11, 2012 · 15 comments


Copy link

@sillero sillero commented Sep 11, 2012

I ran into this problem and got it "fixed".

When you do yeoman init, the files main.scss and main.css are created.

Unless you delete main.css, the yeoman build will ignore the main.scss (or overwrite it, I'm not sure)

So, be sure to delete the main.css if you are not using it directly.

Copy link

@espy espy commented Sep 11, 2012


Copy link

@AtHeartEngineer AtHeartEngineer commented Sep 13, 2012

+1 thanks for the fix!

Copy link

@revathskumar revathskumar commented Nov 4, 2012

Still facing this issue with version 0.9.4.

Copy link

@nihique nihique commented Nov 10, 2012

me too - used:
yeoman init angular
yeoman server => everythnig ok
yeoman build => xxxxx.main.css is empty

Copy link

@paulirish paulirish commented Nov 14, 2012

this is related to having both compass and css file named the same.

we're fixing the init prompt to better communicate your bootstrap options. I'll keep this open until it's very hard to end up in this state.

Copy link

@sindresorhus sindresorhus commented Jan 31, 2013

Fixed in 1.0 which should be out soon.

Copy link

@evert0n evert0n commented Feb 9, 2013

Thanks for share and fix!

Copy link

@rodolphe rodolphe commented Apr 30, 2013

Running into a similar problem using yeoman 1.0.0-beta.4 on Mac OSX 10.8.3.

When I run grunt server app/styles/main.scss is compiled to .tmp/styles properly and everything looks good. It included bootstrap and all of the custom styles I had written in main.scss.

But when I run grunt the xxxxx.main.css file in the dist/ directory is completely blank.

I deleted the main.css file that was generated, but this did not fix the problem.

Copy link

@sghiassy sghiassy commented May 3, 2013

Confirmed... seeing the same problem as @rodolphe on yeoman 1.0.0-beta.4 using default angular-js setup provided in the quick setup guide

Copy link

@jacarma jacarma commented May 5, 2013

Same problem as rodolphe, removing main.css does not fix the problem.

I see in the terminal this:

Configuration is now:

cssmin: {
    dist: {
        files: {
            '<%= yeoman.dist %>/styles/main.css': [
    'dist\\styles\\main.css': 'dist\\styles\\main.css'
Copy link

@Denvar Denvar commented May 7, 2013

I'm seeing the same problem, removing the .css file does not solve.

Copy link

@skeenan skeenan commented May 7, 2013


I'm seeing this too with yeoman 1.0.0-beta.4. removing main.css does not help.

Copy link

@jpretzel jpretzel commented May 16, 2013

I'm having the same Problem.

changed the grunt build task, so that concat runs before imagemin and cssmin and it seems to work.

grunt.registerTask('build', [

Copy link

@jozzhart jozzhart commented May 16, 2013

jpretzel's fix worked for me

Copy link

@richardbrammer richardbrammer commented May 18, 2013

thanks jpretzel, it works for me, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.