Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2/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.