Aliases for URL and import paths
{"foo":"bar"}
Automatically enable
CSS Modules
for files named [name].module.[ext]
(e.g. foo.module.css
, bar.module.stylus
),
or pass your own function or regular expression
Enable/disable or pass options for PostCSS config loader
Generate TypeScript declarations files for input style files
Files to exclude from processing
PostCSS will process files ending with these extensions
Enable/disable or pass options for CSS @import
resolver
Files to include for processing
Options for Less loader
Array of custom loaders
Enable/disable or pass options for cssnano
Select mode for this plugin:
"inject"
(default) - Embeds CSS inside JS and injects it into <head>
at runtime.
You can also pass options for CSS injection.
Alternatively, you can pass your own CSS injector."extract"
- Extract CSS to the same location where JS file is generated but with .css
extension.
You can also set extraction path manually,
relative to output dir/output file's basedir,
but not outside of it."emit"
- Emit pure processed CSS and pass it along the build pipeline.
Useful if you want to preprocess CSS before using it with CSS consuming plugins.Enable/disable or pass options for CSS Modules
Use named exports alongside default export. You can pass a function to control how exported name is generated.
Set PostCSS parser, e.g. sugarss
.
Overrides the one loaded from PostCSS config file, if any.
A list of plugins for PostCSS, which are used before plugins loaded from PostCSS config file, if any
Options for Sass loader
Enable/disable or configure sourcemaps
Set PostCSS stringifier. Overrides the one loaded from PostCSS config file, if any.
Options for Stylus loader
Set PostCSS syntax. Overrides the one loaded from PostCSS config file, if any.
to
option for PostCSS, required for some plugins
Enable/disable or pass options for CSS URL resolver
Array of loaders to use, executed from right to left. Currently built-in loaders are:
sass
(Supports .scss
and .sass
files)less
(Supports .less
files)stylus
(Supports .styl
and .stylus
files)Function which is invoked on CSS file extraction.
Return boolean
to control if file should be extracted or not.
Function which is invoked on CSS file import, before any transformations are applied
Generated using TypeDoc
rollup-plugin-styles
's full option list