import { postcss } from "https://deno.land/x/bundler@0.9.0/deps.ts";
const { Warning } = postcss;
Represents a plugin’s warning. It can be created using Node#warn
.
if (decl.important) {
decl.warn(result, 'Avoid !important', { word: '!important' })
}
Constructors
new
Warning(text: string, opts?: WarningOptions)Properties
Column for inclusive start position in the input file with this warning’s source.
warning.column //=> 6
Column for exclusive end position in the input file with this warning’s source.
warning.endColumn //=> 4
Line for exclusive end position in the input file with this warning’s source.
warning.endLine //=> 6
node: Node
Contains the CSS node that caused the warning.
warning.node.toString() //=> 'color: white !important'