pilif / sacy

Smarty Asset Compiler (warning: all branches but master are subject to force pushes)
http://pilif.github.com/sacy
MIT License
34 stars 12 forks source link

investigate @import #3

Closed pilif closed 12 years ago

pilif commented 15 years ago

while I would love @import to just work transparently, currently sacy breaks @import's inside the compiled CSS files if they use relative path names and while it doesn't break absolute @import's, such CSS resources are still fetched separately.

To fix this, sacy would need to parse the CSS files to get the imported targets and then rewrite them to not @import any more.

Investigate whether it's worth doing all that work

pilif commented 12 years ago

Just use any of less, sass or scss (available from 0.2 and later)

Aside of the fact that with these, @import() is correctly resolved during compilation, you can also have @import anywhere in the file and not just at the beginning.