Skip to content

@import of files with a CSS extension #4

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

Closed
asual opened this issue Apr 7, 2010 · 2 comments
Closed

@import of files with a CSS extension #4

asual opened this issue Apr 7, 2010 · 2 comments

Comments

@asual
Copy link

asual commented Apr 7, 2010

Files with a CSS extension are processed but imports ending in .css are not. Is this made for performance?

There is no such restriction in the Ruby version and it will be great if it at least can be made optional. I prefer using .css instead of .less because text editors recognize it by default and colorize the LESS syntax fairly well.

I traced the problem to the following line in the tree.Import function:
this.css = /css$/.test(this.path);

@cloudhead
Copy link
Member

Hmm, yea the reason is to allow a little more flexibility, so you can import actual css files if needed.

I could add an option to the parser, or have two kinds of import directives, the standard @import would just pass through untouched, and if you want it to be parsed, you'd use something like @include.

@pgib
Copy link

pgib commented May 24, 2010

I was actually grateful that .css files weren't parsed because it was the only way I could include a @-webkit-keyframes definition. But I do like the idea of having @import and @include where the latter is untouched.

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

No branches or pull requests

3 participants