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

Closed
sillero opened this Issue Sep 11, 2012 · 15 comments

Comments

Projects
None yet
@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.

@espy

This comment has been minimized.

Show comment
Hide comment
@espy

espy Sep 11, 2012

Confirmed.

espy commented Sep 11, 2012

Confirmed.

@AtHeartEngineer

This comment has been minimized.

Show comment
Hide comment
@AtHeartEngineer

AtHeartEngineer Sep 13, 2012

+1 thanks for the fix!

+1 thanks for the fix!

@revathskumar

This comment has been minimized.

Show comment
Hide comment
@revathskumar

revathskumar Nov 4, 2012

Member

Still facing this issue with version 0.9.4.

Member

revathskumar commented Nov 4, 2012

Still facing this issue with version 0.9.4.

@nihique

This comment has been minimized.

Show comment
Hide comment
@nihique

nihique Nov 10, 2012

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

nihique commented Nov 10, 2012

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

@paulirish

This comment has been minimized.

Show comment
Hide comment
@paulirish

paulirish Nov 14, 2012

Member

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.

Member

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.

@sindresorhus

This comment has been minimized.

Show comment
Hide comment
@sindresorhus

sindresorhus Jan 31, 2013

Member

Fixed in 1.0 which should be out soon.

Member

sindresorhus commented Jan 31, 2013

Fixed in 1.0 which should be out soon.

@evert0n

This comment has been minimized.

Show comment
Hide comment
@evert0n

evert0n Feb 9, 2013

Thanks for share and fix!

evert0n commented Feb 9, 2013

Thanks for share and fix!

@rodolphe

This comment has been minimized.

Show comment
Hide comment
@rodolphe

rodolphe 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.

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.

@sghiassy

This comment has been minimized.

Show comment
Hide comment
@sghiassy

sghiassy 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

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

@jacarma

This comment has been minimized.

Show comment
Hide comment
@jacarma

jacarma 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': [
                '.tmp/styles/{,*/}*.css',
                'app/styles/{,*/}*.css']
        }
    },
    'dist\\styles\\main.css': 'dist\\styles\\main.css'
}

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': [
                '.tmp/styles/{,*/}*.css',
                'app/styles/{,*/}*.css']
        }
    },
    'dist\\styles\\main.css': 'dist\\styles\\main.css'
}
@Denvar

This comment has been minimized.

Show comment
Hide comment
@Denvar

Denvar May 7, 2013

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

Denvar commented May 7, 2013

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

@skeenan

This comment has been minimized.

Show comment
Hide comment
@skeenan

skeenan May 7, 2013

+1

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

skeenan commented May 7, 2013

+1

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

@jpretzel

This comment has been minimized.

Show comment
Hide comment
@jpretzel

jpretzel 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', [
'clean:dist',
'jshint',
'test',
'coffee',
'compass:dist',
'useminPrepare',
'concat',
'imagemin',
'cssmin',
'htmlmin',
'copy',
'cdnify',
'ngmin',
'uglify',
'rev',
'usemin'
]);

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', [
'clean:dist',
'jshint',
'test',
'coffee',
'compass:dist',
'useminPrepare',
'concat',
'imagemin',
'cssmin',
'htmlmin',
'copy',
'cdnify',
'ngmin',
'uglify',
'rev',
'usemin'
]);

@jozzhart

This comment has been minimized.

Show comment
Hide comment
@jozzhart

jozzhart May 16, 2013

jpretzel's fix worked for me

jpretzel's fix worked for me

@richardbrammer

This comment has been minimized.

Show comment
Hide comment
@richardbrammer

richardbrammer May 18, 2013

thanks jpretzel, it works for me, too

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