https://github.com/lasso-js/lasso-autoprefixer
This plugin for the Lasso.js will run your css through autoprefixer allowing you to write css without having to worry about vendor prefixes.
https://github.com/lasso-js/lasso-autoprefixer
Last synced: 4 months ago
JSON representation
This plugin for the Lasso.js will run your css through autoprefixer allowing you to write css without having to worry about vendor prefixes.
- Host: GitHub
- URL: https://github.com/lasso-js/lasso-autoprefixer
- Owner: lasso-js
- Created: 2015-08-17T22:42:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T17:25:31.000Z (almost 3 years ago)
- Last Synced: 2025-07-06T05:48:17.306Z (4 months ago)
- Language: JavaScript
- Size: 321 KB
- Stars: 2
- Watchers: 8
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lasso-autoprefixer
==================
This plugin for the [Lasso.js](https://github.com/lasso-js/lasso) will run your css through [autoprefixer](https://github.com/postcss/autoprefixer) allowing you to write css without having to worry about vendor prefixes.
# Installation
Install the plugin:
```
npm install lasso-autoprefixer --save
```
Enable the plugin:
```javascript
require('lasso').configure({
plugins: [
{
plugin: 'lasso-autoprefixer',
config: {
... // See below for config options
}
},
...
]
});
```
# Plugin Configuration
It is recommended to use config that is [shareable between all tools] (https://github.com/postcss/autoprefixer#browsers), but config can also be passed directly if needed. See [Autoprefixer options](https://github.com/postcss/autoprefixer#options).
## Sample Configuration
```javascript
require('lasso').configure({
plugins: [
{
"plugin": "lasso-autoprefixer",
"config": {
"browsers": [
"Android >= 2.3",
"BlackBerry >= 7",
"Chrome >= 9",
"Firefox >= 4",
"Explorer >= 9",
"iOS >= 5",
"Opera >= 11",
"Safari >= 5",
"OperaMobile >= 11",
"OperaMini >= 6",
"ChromeAndroid >= 9",
"FirefoxAndroid >= 4",
"ExplorerMobile >= 9"
]
}
},
...
]
});
```