@farmfe/js-plugin-postcss
Support postcss
for Farm.
Installation
- npm
- yarn
- pnpm
Usage
Options
postcssLoadConfig
Farm uses postcss-load-config
to load postcss
config, so you can use postcss-load-config
's options. Refer to postcss-load-config.
Example:
filters
Which files should be processed by postcss
. default to { moduleTypes: ['css'] }
.
resolvedPaths
: Only files under these paths will be processed. Support regex.moduleTypes
: Only files with these module types will be processed. note that less/sass files should be processed by@farmfe/js-plugin-less
/@farmfe/plugin-sass
first.
resolvedPaths
and moduleTypes
are unioned, which means files match any of them will be processed.
Example:
implementation
implementation
package name of postcss
. Default to postcss
.