localvoid / autoprefixer_transformer

Dart `pub` transformer that parses css and adds vendor prefixes to CSS rules
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

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%]

source_map

Generate source map in release mode.

TYPE: bool
DEFAULT: false