Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 2, 2015
  1. Merge pull request #656 from westyby/readme-edits

    Delete duplicated description.
Commits on Sep 1, 2015
  1. @westyby
Commits on Aug 27, 2015
  1. Fixes #652 - order of restoring and removing unused tokens.

    We should first restore token and then remove unused tokens as this
    way the positions don't get mangled.
  2. Version 3.4.0.

  3. Adds testing source maps in batch mode.

    Previous couple commits were fixes identified by this change, where
    output with source maps was different than one without.
  4. Fixes removing unused items.

    Items should be removed by position as it is not guaranteed that
    there are no comments somewhere in between. Affects both modes - source
    maps on & off.
  5. Improves `outline` break up with source maps.

    Another example where JS type coercion betrayed us.
  6. Adds better comments + keepBreaks handling.

    Basically we should remove a comment AND a subsequent line break when
    restoring. This is again due to doing it too late, see #407.
  7. Adds better text normalizing in source maps mode.

    This is making me uneasy as we needed a slightly bigger hack to
    push context to text processor's escape.
    See #407.
  8. Fixes non-adjacent optimizations for source maps.

    We've been comparing wrong things as AST is different.
Commits on Aug 25, 2015
  1. Fixes #632 - adds disabling remote imports.

    So far we only had an option to skip inlining of all imports, but
    with this commit a fine-grained control is added, e.g. import from
    all but
    API: `new CleanCSS({ processImportFrom: ['!'] })`
    CLI: `cleancss --skip-import-from`
    To skip all local imports:
    API: `new CleanCSS({ processImportFrom: ['remote'] })`
    CLI: `cleancss --skip-import-from local`
    To skip all remote and certain local imports:
    API: `new CleanCSS({ processImportFrom: ['local', '!path/to/file'] })`
    CLI: `cleancss --skip-import-from remote,path/to/file`
Commits on Aug 24, 2015
  1. Adds support for Polymer mixins.

    We lacked support of property-level blocks (just simple values) so
    this commit adds this with a special handling of properties in
    tokenizer, simple & advanced optimization, and stringifier.
  2. Replaces Chunker with uber-powerful split.

    These two were doing basically the same thing, while the latter
    being smarter about a context.
  3. Improves splitting strings when keeping values.

    The last value in a string always included a separator while sometimes
    it should not.
  4. Adds proper handling of an open split character.

    When split value starts with an level openinig character we were not
    handling such cases correctly.
  5. Adds breaking splits on a closing token.

    So we can break body on a closing brace which is a separator at the
    same time.
  6. Adds support for custom split separators.

    It defaults to braces as before but it can be customized to anything now.
  7. Adds support for Polymer / Web Components selectors.

    These include
    * :host and ::content for Polymer
    * /deep/ and ::shadow for Web Components
    See #648.
  8. Refixes #648 - apply at-rule support.

    We were not trimming the token before checking for @ character so
    only rules without whitespace were working fine.
Commits on Aug 21, 2015
  1. Fixes #596 - support for !ie IE<8 hack.

    !ie fix is like a backslash hack for IE<10.
  2. Orders CLI options.

Commits on Aug 20, 2015
  1. Updates install requirements.

    Adds io.js 3.0+ as we test against it and it'll become Node.js 4 at
    some point.
  2. Adds missing compatibility docs.

    Missing since adding in, pt, and pc to unit minification.
  3. Removes 2.x -> 3.x upgrade guide.

    We are at 3.4 already and if anyone needs it a 3.x branch still
    has it.
Something went wrong with that request. Please try again.