https://github.com/chisel/ease-task-autoprefixer
Autoprefixer plugin for Ease task manager
https://github.com/chisel/ease-task-autoprefixer
Last synced: 8 months ago
JSON representation
Autoprefixer plugin for Ease task manager
- Host: GitHub
- URL: https://github.com/chisel/ease-task-autoprefixer
- Owner: chisel
- Created: 2019-06-30T03:31:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T01:26:37.000Z (almost 5 years ago)
- Last Synced: 2024-12-27T07:42:22.450Z (over 1 year ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ease Task Runner Autoprefixer Plugin
This is a plugin for the [Ease task runner](https://github.com/chisel/ease). It uses the [autoprefixer](https://www.npmjs.com/package/autoprefixer) module to vendor prefix CSS files.
# Installation
```
npm install ease-task-autoprefixer --save-dev
```
**easeconfig.js:**
```js
const autoprefixer = require('ease-task-autoprefixer');
module.exports = ease => {
ease.install('prefix-css', autoprefixer, {});
};
```
# Configuration
This plugin takes a config object similar to [Autoprefixer Options](https://www.npmjs.com/package/autoprefixer#options) while adding the following properties:
- `dir`: Path to a directory containing all the SASS files, relative to `easeconfig.js`
- `outDir`: Path to the output directory where the CSS files should be written, relative to `easeconfig.js`
- `cleanOutDir`: Boolean indicating if the output directory should be emptied first
- `browserslist`: A path to the `.browserslistrc` file, relative to `easeconfig.js`
> Either `browserslist` or `overrideBrowserslist` must be present.
# Example
**easeconfig.js:**
```js
const autoprefixer = require('ease-task-autoprefixer');
module.exports = ease => {
ease.install('prefix-css', autoprefixer, {
dir: 'dist',
outDir: 'dist',
browserslist: '.browserslistrc'
});
ease.job('prefix-css-files', ['prefix-css']);
};
```
**CLI:**
```
ease prefix-css-files
```