@stylexjs/postcss-plugin
Configuration options
babelConfig
babelConfig: object; // Default: {}
Options for Babel configuration. By default, the plugin reads the babel.config.js
in your project. For custom configurations, set babelrc: false
and specify desired options. Refer to Babel Config Options for available options.
cwd
cwd: string; // Default: process.cwd()
Working directory for the plugin; defaults to process.cwd()
.
exclude
exclude: string[] // Default: []
Array of paths or glob patterns to exclude from compilation. Paths in exclude
take precedence over include
.
include
include: string[] // Required
Array of paths or glob patterns to compile.
useCSSLayers
useCSSLayers: boolean; // Default: false
Enabling this option switches Stylex from using :not(#\#)
to using @layers
for handling CSS specificity.