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

SASS support #12

Closed
NARKOZ opened this issue Sep 8, 2012 · 5 comments
Closed

SASS support #12

NARKOZ opened this issue Sep 8, 2012 · 5 comments

Comments

@NARKOZ
Copy link

NARKOZ commented Sep 8, 2012

Is it available or planned?

@oyvindeh
Copy link
Owner

It's currently not available. It would be interesting to add this.

One way of doing it, could be by adding support for a preprocessor that could be specified in in ucss.json. That way, any CSS processor (e.g. SASS, LESS) could be run, before the CSS is processed by uCSS.

I'll look into this when I have some spare time!

@oyvindeh
Copy link
Owner

Depends on #14

@ghost ghost assigned oyvindeh Sep 16, 2012
@oyvindeh
Copy link
Owner

Maybe you could use Grunt for this? @ullmark has started a small project for running uCSS with Grunt: https://github.com/ullmark/grunt-ucss

@ullmark
Copy link

ullmark commented Mar 21, 2013

Yes, I've got a small project for running ucss with grunt.
Not released yet, since i wanted to add the feature of cleaning css, where it produces a ".clean.css" version of the files where all the unused selectors are removed.

@oyvindeh , cleaning with regex can be a bit tricky so I might use cssom, but since ucss already parses with cssom I've been thinking about submitting a pull request to ucss with cleaning capabilities.

I'll try to publish a initial version of grunt-ucss that only reports unused css as a first version...

@oyvindeh
Copy link
Owner

I'll try to publish a initial version of grunt-ucss that only reports unused css as a first version...

Sounds good :)

Moved discussion about cleaning to #18

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

No branches or pull requests

3 participants