less / less-plugin-autoprefix

Adds the ability for less to be post-processed by autoprefixer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version

less-plugin-autoprefix

Uses autoprefixer to add prefixes to css after conversion from less.

lessc usage

Install..

npm install -g less-plugin-autoprefix

and then on the command line,

lessc file.less --autoprefix="browsers"

The browsers are a comma seperated list of browsers as specified with autoprefixer.

Programmatic usage

var LessPluginAutoPrefix = require('less-plugin-autoprefix'),
    autoprefixPlugin = new LessPluginAutoPrefix({browsers: ["last 2 versions"]});
less.render(lessString, { plugins: [autoprefixPlugin] })
  .then(

Browser usage

Browser usage is not supported at this time.

About

Adds the ability for less to be post-processed by autoprefixer

License:Apache License 2.0


Languages

Language:JavaScript 100.0%