Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/less/less-plugin-autoprefix

Adds the ability for less to be post-processed by autoprefixer
https://github.com/less/less-plugin-autoprefix

autoprefixer less-plugin

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

[![NPM version](https://badge.fury.io/js/less-plugin-autoprefix.svg)](http://badge.fury.io/js/less-plugin-autoprefix)

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](https://github.com/postcss/autoprefixer#browsers).

## Programmatic usage

```js
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.