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

x/astro_compress/dist/options/css.d.ts>default

🗜️ AstroJS compression utilities. Compress CSS, HTML, JavaScript and more.
Go to Latest
interface default
import { type default } from "https://deno.land/x/astro_compress@v0.0.15/dist/options/css.d.ts";

Index Signatures

[key: string]: any

Properties

optional
sourceMap: Boolean

Generate a source map when true.

optional
filename: String

Filename of input CSS, uses for source map generation.

optional
debug: Boolean

Output debug information to stderr.

optional
beforeCompress: (unnamed 0: beforeCompressOptions) => void | Array<(unnamed 0: beforeCompressOptions) => void> | null

Called right after parse is run.

optional
afterCompress: (unnamed 0: afterCompressOptions) => void | Array<(unnamed 0: afterCompressOptions) => void> | null

Called right after syntax.compress() is run.

optional
restructure: Boolean

Disable | enable a structure optimisations.

optional
forceMediaMerge: Boolean

Enables merging of @media rules with the same media query by splitted by other rules. The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk.

optional
clone: Boolean

Transform a copy of input AST if true. Useful in case of AST reuse.

optional
comments: String | Boolean

Specify what comments to leave: 'exclamation' | true – leave all exclamation comments (i.e. /*! .. */) 'first-exclamation' – remove every comment except first one false – remove all comments

optional
usage: { } | null

Usage data for advanced optimisations.

optional
logger: () => { } | null

Function to track every step of transformation.