Optionalbeautifypretty print css
const result = await transform(css, {beautify: true});
Optionalconvertconvert color to the specified color space. 'true' will convert to HEX
Optional Internalcwdcurrent working directory
Optionalexpandexpand nesting rules
Optionalindentindent string
Optionalminifyminify css values.
Optionalnewnew line string
Optional Internaloutputoutput file. used for url resolution
Optionalpreservepreserve license comments. license comments are comments that start with /*!
Optionalremoveremove comments
Optionalremoveremove empty nodes. empty nodes are removed by default
const css = `
@supports selector(:-ms-input-placeholder) {
:-ms-input-placeholder {
}
}`;
const result = await transform(css, {removeEmpty: false});
Optional Internalresolveresolve path
Optionalsourcemapgenerate sourcemap object. 'inline' will embed it in the css
Optionalwithrender the node along with its parents
ast node render options