Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month ago
JSON representation
Adds the ability for less to be post-processed by autoprefixer
- Host: GitHub
- URL: https://github.com/less/less-plugin-autoprefix
- Owner: less
- License: apache-2.0
- Created: 2014-09-09T20:31:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T02:16:42.000Z (about 1 year ago)
- Last Synced: 2024-05-23T08:03:00.160Z (6 months ago)
- Topics: autoprefixer, less-plugin
- Language: JavaScript
- Size: 28.3 KB
- Stars: 171
- Watchers: 18
- Forks: 33
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.