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

No styles displayed and no .tmp folder on grunt build, "Destination not written... minified CSS was empty." #956

Closed
matt-mcdaniel opened this issue Dec 18, 2014 · 3 comments

Comments

@matt-mcdaniel
Copy link

I'm running a Virtual Node Server hosted through Digital Ocean on an Ubuntu machine.

I have a pretty standard yo angular install. I admittedly uninstalled karma, but otherwise it's clean.

When I run grunt, I get the following error, presumably as a part of the build task:

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

I found a similar issue on generator-webapp (#211) where the problem was ensuring ruby, sass, and compass were correctly installed on the machine. I have checked the versions for the three ruby -v, compass -v and sudo compass version (compass requires permission for sudo compass version). They all seem to be installed fine, although running

In my gem list I have:


compass (1.0.1, 0.12.2)
sass (3.4.9, 3.2.12)

ruby -v outputs ruby 1.9.3p484, so it appears all three are installed correctly.


The problem appears to be related to the fact that no .tmp directory exists in server/dist.

The styles directory exists in server/dist, but there is no .tmp folder. I manually created a .tmp folder, but it was deleted after running grunt. Could this be the problem?

Any help is appreciated.

@eddiemonge
Copy link
Member

Why does sudo compass version require sudo?

.tmp won't be in server/dist. It is in your project's root folder.

Try asking this on stackoverflow as well.

@eddiemonge
Copy link
Member

closing due to inactivity. if it is still a (repeat-able) bug then I'll reopen and investigate further

@bramcordie
Copy link

I bumped into a similar problem but I'm not using sass. The concurrent:dist task that copies the main.css file, running in parallel was not ready before minification started. Adding the copy:styles content to the copy:dist command fixed the problem for me.

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

3 participants