Have ideas to improve npm?Join in the discussion! »

    ease-task-sass

    1.0.4 • Public • Published

    Ease Task Runner SASS Plugin

    This is a plugin for the Ease task runner. It uses the NPM sass module to process SASS file into CSS.

    Installation

    npm install ease-task-sass --save-dev
    

    easeconfig.js:

    const sass = require('ease-task-sass');
    
    module.exports = ease => {
    
      ease.install('sass', sass, {});
    
    };

    Configuration

    This plugin takes a config object similar to SASS Options while ignoring file, outFile, and data properties. Instead, the following properties are added to the options object:

    • 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

    Example

    easeconfig.js:

    const sass = require('ease-task-sass');
    
    module.exports = ease => {
    
      ease.install('sass', sass, {
        dir: 'sass',
        outDir: 'css',
        sourceMap: true,
        cleanOutDir: true
      });
    
      ease.job('process-sass-files', ['sass']);
    
    };

    CLI:

    ease process-sass-files
    

    Install

    npm i ease-task-sass

    DownloadsWeekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    4.57 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar