Optional
afterOptional
beforeCalled right after parse is run.
Optional
cloneTransform a copy of input AST if true. Useful in case of AST reuse.
false
Optional
commentsSpecify what comments to leave:
AstroCompress false
csso true
Optional
debugOutput debug information to stderr.
false
Optional
filenameFilename of input CSS, uses for source map generation.
'<unknown>'
Optional
forceEnables merging of
rules with the same media query by splitted by other rules. The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk.
AstroCompress true
csso false
Optional
loggerFunction to track every step of transformation.
Optional
restructureDisable or enable a structure optimisations.
AstroCompress false
csso true
Optional
sourceGenerate a source map when true.
false
Optional
usageUsage data for advanced optimisations.
Generated using TypeDoc
Called right after compress() is run.