1.0.0-alpha.29
(fixes some issues)1.0.0-alpha.27
-ms-flex
due it breaks flex in IE10/11 (#362)position
declarations when sticky
fallback is using (@gruzzilkin, #356)1.0.0-alpha25
@keyframes
to the beginning of style sheet (chunk), but after @charset
and @import
rules@keyframes
, @media
and @supports
with no prelude@keyframes
(#202)forceMediaMerge
to force media rules merging. It's unsafe in general, but works fine in many cases. Use it on your own risk (#350)CSSTree
to 1.0.0-alpha23
none
keyword in border
and outline
properties (@zoobestik, #41)rgba(x, x, x, 0)
to transparent
calc(1px+2px)
has been optimized to calc(1px2px)
before, now it stays the same):nth-*()
, :has()
, :matches
and other pseudos)blacklist
filtering in usage (#334, see Black list filtering)CSSTree
to 1.0.0-alpha19
!important
syntax
property\0
IE hack support (#320)beforeCompress
and afterCompress
options support (#316)cursor
broken fallback (#306)clone()
function and clone
option for compress()
function (#296)[attrName i]
)\9
hack merge (#295)comments
to specify what comments to left: exclamation
, first-exclamation
and none
offset
to CSS parse error detailsoffset
computationgonzales
AST format and related codeminify()
and minifyBlock()
is always return an object as result now (i.e. { css: String, map: SourceMapGenerator or null }
)parse()
internal
)context
argument, context should be specified via options
stylesheet
, atrule
, atruleExpression
, ruleset
, selector
, simpleSelector
, block
, declaration
and value
needPositions
option, positions
option should be used insteadneedInfo
option, info
object is attaching to nodes when some information is requested by options
options
should be an object, otherwise it treats as empty objectcompress()
outputAst
option{ ast: Object }
)justDoIt()
, stringify()
, cleanInfo()
--usage
to pass usage data file.csso.minifyBlock()
for css block compression (e.g. style
attribute content).@media
or @supports
) now can be skipped during ruleset merge lookup if doesn't contain something prevents it.:not()
) to pseudo signature to avoid unsafe merge (old browsers doesn't support it).//
hack@import
and @charset
removal on double exclamation comment!important
when check for property overriding (#280)text-align
declarations with some values (#281)/deep/
combinator on translate, since it together with universal selector can produce a commentlogger
option for compress()
and minify()
npm
publish issue (#276)file
to generated source map since other tools can relay on it in source map transform chain:not()
parsing and selector groups in :not()
is supported now (#215)needPosition
parser option is deprecated, positions
option should be used instead (needPosition
is used still if positions
option omitted)csso.internal.*
minify()
adds sourcesContent
by default when source map is generated0.10
until major release (#275)restructuring
to restructure
option for minify()
/compress()
(restructuring
is alias for restructure
now, with lower priority)restructRuleset
this time) with merge of rulesets when a ruleset with same specificity places between them (#264)@keyframes
rulesets (until sure it's correct)-
is not used as an identifier in attribute selectors (thanks to @mathiasbynens)justDoIt()
functiongonzales
→internal
and internal
→gonzales
convertors, walkers, translator)@media
with same queryoutputAst
– new option to specify output AST format (gonzales
by default for backward compatibility)from
→0%
and 100%
→to
at @keyframes
(#205)@keyframes
(#80, #197)gonzales
AST was implemented--stat
(output stat in stderr
)level
for --debug
optionprogid:
and rest part of value for IE's filter
property as autoprefixer
generates this kind of code (#249)display
property (#167, #244)rect
(clip
property value) mergeprepublish
(thanks to @silentroach)Bringing project back to life. Changed files structure, cleaned up and refactored most of sources.
src
folder)browserify
(no more make
, and web
folder), browser version is available at dist/csso-browser.js
lib/index.js
nownode.js
version is 0.12
nowjscs
to control code stylegh-pages
updateminify(src, options)
, options:restructuring
– if set to false
, disable structure optimisations (true
by default)debug
- outputs intermediate state of CSS during compression (false
by default)justDoIt()
method (use minify
instead)treeToString()
method to stringify()
printTree()
methodcolumn
and offset
addedln
renamed to line
--rule
and --parser
(suppose nobody use it)-off
alias for --restructure-off
as incorrect (only one letter options should starts with single -
)--debug
that reflecting to options.debug
for minify
/deep/
combinator support (#209)hsla
to rgba
and hls
to rgb
rgba
with 1 as alpha value to rgb
(#122)rgb
and rgba
percentage values to absolute valuesrgba
for normalized/interpolated values+
and -
(#228)flex
property as it could change value meaning (#200)\9
hack values (#231)!important
issue for top-right-bottom-left
properties (#189)top-right-bottom-left
properties merge (#139, #175)!important
(#187)csso
as cli command on Windows (#83, #136, #142 and others)0s
in Firefox for animations: https://github.com/css/csso/issues/100Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.