pub transformer that parses css and adds vendor prefixes to css rules.
This transformer depends on autoprefixer CLI tool that performs transformations.
pubspec.yaml
name: autoprefixer_example
dependencies:
autoprefixer_transformer: any
transformers:
- autoprefixer_transformer:
browsers:
- "last 2 versions"
web/example.css
.noselect {
user-select: none;
}
executable
Path to the autoprefixer executable.
TYPE: String
DEFAULT: autoprefixer
browsers
Browsers you want to target.
TYPE: List<String>
DEFAULT: [> 1%]
source_map
Generate source map in release mode.
TYPE: bool
DEFAULT: false