import { Processor } from "https://deno.land/x/postcss@8.4.16/lib/postcss.js";
Parses source CSS and returns a LazyResult
Promise proxy.
Because some plugins can be asynchronous it doesn’t make
any transformations. Transformations will be applied
in the LazyResult
methods.
processor.process(css, { from: 'a.css', to: 'a.out.css' })
.then(result => {
console.log(result.css)
})
Parameters
String with input CSS or any object with a toString()
method,
like a Buffer. Optionally, senda Result
instance
and the processor will take the Root
from it.
optional
options: ProcessOptionsOptions.
Returns
LazyResult | NoWorkResult
Promise proxy.