Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Codekit part minified, part expanded!

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42084
    sheepysheep60
    Participant

    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

    #121756
    rosspenman
    Participant

    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).
    */

    #121773
    Chris Coyier
    Keymaster

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

    #122069
    sheepysheep60
    Participant

    Thanks guys!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.