https://github.com/chisel/ease-task-sass
SASS preprocessor for Ease task manager.
https://github.com/chisel/ease-task-sass
Last synced: 5 months ago
JSON representation
SASS preprocessor for Ease task manager.
- Host: GitHub
- URL: https://github.com/chisel/ease-task-sass
- Owner: chisel
- Created: 2019-06-29T22:13:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T16:11:43.000Z (over 3 years ago)
- Last Synced: 2025-01-29T00:47:12.453Z (about 1 year ago)
- Language: JavaScript
- Size: 187 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ease Task Runner SASS Plugin
This is a plugin for the [Ease task runner](https://github.com/chisel/ease). It uses the NPM [sass](https://github.com/sass/node-sass) module to process SASS file into CSS.
# Installation
```
npm install ease-task-sass --save-dev
```
**easeconfig.js:**
```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](https://github.com/sass/node-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:**
```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
```