Hey Offroad, This looks like a useful project, thanks. When you say it will combine files, can it be used with css files that import others using @import? (including multiple levels). We have a site that uses OOCSS and the files are neatly organised using @import
Thanks for the kind words. The compressor does one thing and does it well. If you have multiple files then it will combine them but it does not parse the CSS files for @import commands. This could lead to all sorts of headaches including multiple copies of the same file so we choose to leave that to other tools to do the job.
@import
Hey Offroad,
This looks like a useful project, thanks.
When you say it will combine files, can it be used with css files that import others using @import?
(including multiple levels). We have a site that uses OOCSS and the files are neatly organised using @import
Cheers
Jay
Hey Jay,
Thanks for the kind words. The compressor does one thing and does it well. If you have multiple files then it will combine them but it does not parse the CSS files for @import commands. This could lead to all sorts of headaches including multiple copies of the same file so we choose to leave that to other tools to do the job.
Have the best practise rules on using @import changed? Thought it should be avoided http://www.stevesouders.com/blog/2009/04/09/dont-use-import/
Hope that helps.
Pete
Hi Pete,
Thanks for the reply. The multiple files issue is one of my concerns.
I think the advice is still valid, I've inherited a project that uses imported files and OOCSS.
Think I'll steer them away from using @import, thanks for the feedback
J
is working on a reply...