Skip to main content
Module

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

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

Creates an instance of Warning and adds it to Result#messages.

if (decl.important) {
  result.warn('Avoid !important', { node: decl, word: '!important' })
}

Parameters

message: string

Warning message.

optional
options: WarningOptions

Warning options.

Returns

Created warning.