autoprefixer_transformer

pub transformer that parses css and adds vendor prefixes to css rules.

Prerequisites

This transformer depends on autoprefixer CLI tool that performs transformations.

Usage example

pubspec.yaml

name: autoprefixer_example
dependencies:
  autoprefixer_transformer: any
transformers:
- autoprefixer_transformer:
    browsers:
    - "last 2 versions"

web/example.css

.noselect {
  user-select: none;
}

Options

executable

Path to the autoprefixer executable.

TYPE: String DEFAULT: autoprefixer

browsers

Browsers you want to target.

TYPE: List<String> DEFAULT: [> 1%]

Libraries

autoprefixer_transformer

Transfomer that parses css and adds vendor prefixes to CSS rules.