Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drollup/plugins/postcss/mod.ts>RollupPostcssOptions

Next-generation ES module bundler ported for Deno
Latest
interface RollupPostcssOptions
import { type RollupPostcssOptions } from "https://deno.land/x/drollup@2.58.0+0.20.0/plugins/postcss/mod.ts";

Properties

optional
output:
| string
| boolean
| null

One of:

  • A string filename to write all styles to;
  • A callback that will be called once generated with three arguments:
    • styles: the contents of all style tags combined: "body { color: green }";
    • styleNodes: an array of style objects: [{ lang: "css", content: "body { color: green }" }];
    • bundle: the output bundle object;
  • false to disable any style output or callbacks;
  • null for the default behaviour: to write all styles to the bundle destination where .js is replaced by .css.
optional
include: FilterPattern

All CSS files will be parsed by default, but you can also specifically include files

optional
exclude: FilterPattern

All CSS files will be parsed by default, but you can also specifically exclude files

optional
plugins: AcceptedPlugin[]

PostCSS plugins to apply.

optional
processOptions: RollupPostcssProcessOptions

Options to pass to PostCSS.

optional
autoModules: boolean

Automatically enable CSS modules for files with .module.* extensions.

optional
modules: boolean | Record<string, any>

Enable CSS modules for postcss-modules.

If an object is provided, it is passed as options to the postcss-modules library.