Skip to main content

@farmfe/js-plugin-postcss

Support postcss for Farm.

Installation

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.

Extremely Fast Web Build Tool Written in Rust

Copyright © 2024 Farm Community. Built with Docusaurus.