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

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

A Bundler with the web in mind.
Go to Latest
method postcss.Result.prototype.warn
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.5/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.