Grow your CSS skills. Land your dream job.

Codekit part minified, part expanded!

  • # January 21, 2013 at 1:51 pm

    Hiya,

    I use codekit to compile my scss files into a style.css file. I’d like them all to be minified, but the thing is I’d like to keep the comments at the start, i.e.

    /*
    Theme Name: Twenty Ten
    Theme URI: http://wordpress.org/
    Description: The 2010 default theme for WordPress.
    Author: wordpressdotorg
    Author URI: http://wordpress.org/
    Version: 1.0
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)

    License:
    License URI:

    General comments (optional).
    */

    Any ideas?

    Thanks! Dave

    # January 21, 2013 at 1:55 pm

    Adding an exclamation mark after the /* will preserve the comment.

    /*!
    Theme Name: Twenty Ten
    Theme URI: http://wordpress.org/
    Description: The 2010 default theme for WordPress.
    Author: wordpressdotorg
    Author URI: http://wordpress.org/
    Version: 1.0
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)

    License:
    License URI:

    General comments (optional).
    */

    # January 21, 2013 at 5:11 pm

    This article might have some good stuff in it for you too: http://css-tricks.com/compass-compiling-and-wordpress-themes/

    # January 23, 2013 at 6:44 pm

    Thanks guys!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".