This is a plugin for the Ease task runner. It uses the autoprefixer module to vendor prefix CSS files.
npm install ease-task-autoprefixer --save-dev
easeconfig.js:
const autoprefixer = require('ease-task-autoprefixer');
module.exports = ease => {
ease.install('prefix-css', autoprefixer, {});
};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 toeaseconfig.jsoutDir: Path to the output directory where the CSS files should be written, relative toeaseconfig.jscleanOutDir: Boolean indicating if the output directory should be emptied firstbrowserslist: A path to the.browserslistrcfile, relative toeaseconfig.js
Either
browserslistoroverrideBrowserslistmust be present.
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