Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Build is moving styles to the wrong path #204

Closed
oskarrough opened this issue Nov 18, 2013 · 14 comments
Closed

Build is moving styles to the wrong path #204

oskarrough opened this issue Nov 18, 2013 · 14 comments

Comments

@oskarrough
Copy link

Just did npm update -g and now the default generator-webapp is moving main.css to dist/.tmp/styles/main.css on build. Can't wrap my head around what changed.

Running generator-webapp 0.4.4 with node v0.10.22 on OSX 10.9. Here's the Gruntfile.js and build log.

@Khrystyna
Copy link

I got the same issue with the fresh install of webapp generator.

@haydenbleasel
Copy link
Contributor

I have an error related to this I think. I believe this is a similar issue, if it helps: yeoman/yeoman#411

@eddiemonge
Copy link
Member

can you gist the output of the grunt build process?

@eddiemonge
Copy link
Member

i think it might be related to yeoman/grunt-usemin#238

@haydenbleasel
Copy link
Contributor

@eddiemonge - First gist is grunt, outputs the following which was fixed in yeoman/generator-webapp#192, second gist is grunt build (or grunt after fixing indentation problems).

https://gist.github.com/haydenbleasel/7539859

Problem for me is here:

Running "cssmin:generated" (cssmin) task
>> Destination not written because minified CSS was empty.

Generated with Modernizr and Bootstrap for Sass on Mac OSX 10.9, latest yo and generator-webapp.

@eddiemonge
Copy link
Member

@oskarrough @Khrystyna @haydenbleasel can you try updating usemin and try again?

@haydenbleasel
Copy link
Contributor

@eddiemonge - Updated to 2.0.2. No dice I'm afraid, same error as my previous comment.

@smongey
Copy link

smongey commented Nov 21, 2013

@haydenbleasel I was having a very similar issue. In your gruntfile uncomment the dist section for cssmin and it should do the trick although the names of the images referenced in you css don’t get revved.

@smongey
Copy link

smongey commented Nov 21, 2013

@haydenbleasel Actually just sussed it will revv them if its url('/images/logo.png') not if its url(../images/logo.png)

@haydenbleasel
Copy link
Contributor

@smongey - For reference, this error happens without any modifications to the scaffold i.e. just running yo webapp then grunt build.

@oskarrough
Copy link
Author

The webapp is now working out of the box again. Also tried updating usemin from 2.0.0 to 2.0.2 and both were working.

@haydenbleasel could you try npm update -g and see it if works now?

@haydenbleasel
Copy link
Contributor

@oskarrough - Did an npm update -g and generated a new webapp with yo webapp, still produces the same error. Not sure why that would have changed, usemin hasn't been updated in a week, generator-webapp hasn't been updated in 3 weeks. Since your error was different and it's now apparently resolved, we can bring this over to #211.

@oskarrough
Copy link
Author

Sure.

@ecurtis
Copy link

ecurtis commented Dec 29, 2013

I am getting this same error. I have updated gems, npm and brew with not luck.

A fresh install of webapp and an immediate grunt build gives me:

Running "cssmin:generated" (cssmin) task

Destination not written because minified CSS was empty.
File dist/styles/main.css created.

OS X 10.9.1

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

6 participants