treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Codekit part minified, part expanded!

  • 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

  • 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).
      */  
    
  • This article might have some good stuff in it for you too: http://css-tricks.com/compass-compiling-and-wordpress-themes/

  • Thanks guys!