Node.js-specific utilities and runtime functionality for Tailwind CSS v4, providing compilation tools, module dependency analysis, source map handling, path normalization, and optimization utilities.
Design a module that optimizes CSS strings using a modern optimizer, merges duplicate rules, normalizes media queries, and produces accurate source maps with contextual warnings.
not (width < 768px) into the compatible not all and (width < 768px) form in the optimized output. @testsources and sourcesContent reference the original file and preserve mapping offsets for the transformed CSS. @test@generates
export interface OptimizeOptions {
css: string;
filename?: string;
minify?: boolean;
inputMap?: string;
}
export interface OptimizationWarning {
message: string;
line: number;
column: number;
snippet: string;
}
export interface OptimizeResult {
css: string;
map?: string;
warnings: OptimizationWarning[];
}
export function optimizeStyles(options: OptimizeOptions): OptimizeResult;Provides the CSS optimization and source map utilities needed for modern CSS features.
tessl i tessl/npm-tailwindcss--node@4.1.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10