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

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

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

sillero opened this issue Sep 11, 2012 · 15 comments
Assignees
Labels
bug
Milestone

Comments

@sillero
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.

@espy
Copy link

@espy espy commented Sep 11, 2012

Confirmed.

@AtHeartEngineer
Copy link

@AtHeartEngineer AtHeartEngineer commented Sep 13, 2012

+1 thanks for the fix!

@revathskumar
Copy link
Member

@revathskumar revathskumar commented Nov 4, 2012

Still facing this issue with version 0.9.4.

@nihique
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

@paulirish
Copy link
Member

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

@sindresorhus
Copy link
Member

@sindresorhus sindresorhus commented Jan 31, 2013

Fixed in 1.0 which should be out soon.

@evert0n
Copy link

@evert0n evert0n commented Feb 9, 2013

Thanks for share and fix!

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

@sghiassy
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

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

@Denvar Denvar commented May 7, 2013

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

@skeenan
Copy link

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

@jozzhart
Copy link

@jozzhart jozzhart commented May 16, 2013

jpretzel's fix worked for me

@richardbrammer
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
Projects
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.