Files
sweet/plugin-tailwindcss/src/types.ts
T
Marvin Hagemeister dbb76623a4 Revert "feat: update the tailwind plugin to suuport tailwindv4 #2819 (#2903)" (#2988)
Reverts tailwind v4 update. Something is wrong with the CSS files on
fresh.deno.dev 😢
2025-05-21 16:07:51 +02:00

49 lines
1.4 KiB
TypeScript

import type { OnTransformOptions } from "@fresh/core/dev";
export interface AutoprefixerOptions {
/** environment for `Browserslist` */
env?: string;
/** should Autoprefixer use Visual Cascade, if CSS is uncompressed */
cascade?: boolean;
/** should Autoprefixer add prefixes. */
add?: boolean;
/** should Autoprefixer [remove outdated] prefixes */
remove?: boolean;
/** should Autoprefixer add prefixes for @supports parameters. */
supports?: boolean;
/** should Autoprefixer add prefixes for flexbox properties */
flexbox?: boolean | "no-2009";
/** should Autoprefixer add IE 10-11 prefixes for Grid Layout properties */
grid?: boolean | "autoplace" | "no-autoplace";
/** custom usage statistics for > 10% in my stats browsers query */
stats?: {
[browser: string]: {
[version: string]: number;
};
};
/**
* list of queries for target browsers.
* Try to not use it.
* The best practice is to use `.browserslistrc` config or `browserslist` key in `package.json`
* to share target browsers with Babel, ESLint and Stylelint
*/
overrideBrowserslist?: string | string[];
/** do not raise error on unknown browser version in `Browserslist` config. */
ignoreUnknownVersions?: boolean;
}
export interface TailwindPluginOptions {
autoprefixer?: AutoprefixerOptions;
/** Exclude paths or globs that should not be processed */
exclude?: OnTransformOptions["exclude"];
}