Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jaygreasley 416 posts 403 karma points
    Apr 14, 2012 @ 09:58
    jaygreasley
    0

    @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

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Apr 23, 2012 @ 13:29
    Peter Duncanson
    0

    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

  • jaygreasley 416 posts 403 karma points
    Apr 23, 2012 @ 15:03
    jaygreasley
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft