Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Root.prototype.toResult
Re-export
import { Root } from "https://deno.land/x/postcss@8.4.16/lib/postcss.d.ts";

Returns a Result instance representing the root’s CSS.

const root1 = postcss.parse(css1, { from: 'a.css' })
const root2 = postcss.parse(css2, { from: 'b.css' })
root1.append(root2)
const result = root1.toResult({ to: 'all.css', map: true })

Parameters

optional
options: ProcessOptions

Options.

Returns

Result with current root’s CSS.