rosid-handler-scss
A function that loads a SCSS file, transforms it to CSS, adds vendor prefixes and minifies the output.
Install
npm install rosid-handler-scss
Usage
API
const scss =
Rosid
Add the following object to your rosidfile.json
, rosidfile.js
or routes array. rosid-handler-scss
will transform all matching SCSS files in your source folder to CSS.
/* main.scss */.class
/* main.css (output) */
Parameters
filePath
{String}
Absolute path to file.opts
{?Object}
Options.optimize
{?Boolean}
- Optimize output. Defaults tofalse
.
Returns
{Promise}({String|Buffer})
The transformed file content.