Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/deps.ts>postcss.Node#warn

A Bundler with the web in mind.
Go to Latest
method postcss.Node.prototype.warn
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.5/deps.ts";
const { Node } = postcss;

This method is provided as a convenience wrapper for Result#warn.

  Declaration: {
    bad: (decl, { result }) => {
      decl.warn(result, 'Deprecated property bad')
    }
  }

Parameters

result: Result

The Result instance that will receive the warning.

text: string

Warning message.

optional
opts: WarningOptions

Warning Options.

Returns

void

Created warning object.