Adds the ability for less to be post-processed by autoprefixer
Switch branches/tags
Nothing to show
Clone or download
calvinjuarez Merge pull request #34 from calvinjuarez/update-dependencies
update autoprefixer to 8.6.3 & postcss to 6.0.22 (fix #33, close #27)
Latest commit bffe924 Jul 13, 2018
Failed to load latest commit information.
lib Add sources from autoprefixer to fix #17 Sep 24, 2015
.gitignore initial working version Sep 18, 2014
LICENSE Update LICENSE Sep 17, 2015 Better code highlight Mar 13, 2015
package-lock.json 2.0.0 Jul 12, 2018
package.json 2.0.0 Jul 12, 2018

NPM version Dependencies devDependency Status optionalDependency Status


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

lessc usage


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] })

Browser usage

Browser usage is not supported at this time.