ease-task-autoprefixer

1.0.3 • Public • Published

Ease Task Runner Autoprefixer Plugin

This is a plugin for the Ease task runner. It uses the autoprefixer module to vendor prefix CSS files.

Installation

npm install ease-task-autoprefixer --save-dev

easeconfig.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 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:

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

/ease-task-autoprefixer/

    Package Sidebar

    Install

    npm i ease-task-autoprefixer

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.43 kB

    Total Files

    3

    Last publish

    Collaborators

    • ramtinsoltani