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

x/drollup/plugins/css/mod.ts>RollupCssOptions

Next-generation ES module bundler ported for Deno
Latest
interface RollupCssOptions
import { type RollupCssOptions } from "https://deno.land/x/drollup@2.58.0%2B0.20.0/plugins/css/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