https://github.com/lukeed/taskr-autoprefixer
PostCSS Autoprefixer plugin for Taskr
https://github.com/lukeed/taskr-autoprefixer
autoprefixer css postcss taskr-plugin
Last synced: about 2 months ago
JSON representation
PostCSS Autoprefixer plugin for Taskr
- Host: GitHub
- URL: https://github.com/lukeed/taskr-autoprefixer
- Owner: lukeed
- License: other
- Created: 2017-06-19T20:43:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-19T20:45:54.000Z (about 9 years ago)
- Last Synced: 2025-10-17T02:38:20.148Z (8 months ago)
- Topics: autoprefixer, css, postcss, taskr-plugin
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# taskr-autoprefixer [](https://travis-ci.org/lukeed/taskr-autoprefixer) [](https://npmjs.org/package/taskr-autoprefixer)
> PostCSS [Autoprefixer](https://github.com/postcss/autoprefixer) plugin for [Taskr](https://github.com/lukeed/taskr).
This is a merely convenience layer for PostCSS + Autoprefixer.
You may elect to use [`@taskr/postcss`](https://github.com/lukeed/taskr/tree/master/packages/postcss) and `require('autoprefixer')` instead. In fact, you probably _should_ if you're using other PostCSS plugins!
## Install
```sh
npm install --save-dev taskr-autoprefixer
```
## Usage
```js
exports.default = function * (task) {
yield task.source('src/**/*.sass')
.sass()
.autoprefixer({
browsers: ['last 5 versions']
})
.target('dist/css');
}
```
> **Note:** If using a CSS preprocessing tool (eg: SASS, Stylus, LESS), `autoprefixer()` must be invoked _after_ the CSS has been compiled.
## API
### .autoprefixer(options)
This plugin does not have any custom options. Please visit [`autoprefixer` options](https://github.com/postcss/autoprefixer#options) for a full list of available options.
## License
MIT © [Luke Edwards](https://lukeed.com)