Transform Sass/SCSS files to CSS on the fly.
Install it using npm
npm i -D @reboost/plugin-sass
Install node-sass
or sass
(whichever you like), if not installed
npm i node-sass
or
npm i sass
Import it from the package
const { start } = require('reboost');
const SassPlugin = require('@reboost/plugin-sass');
Add it to the plugins array
const { start } = require('reboost');
const SassPlugin = require('@reboost/plugin-sass');
start({
plugins: [
SassPlugin({
// Options
})
]
})
import './styles.scss';
Type: Sass.Options | object
Options to use when rendering Sass/SCSS files. You can read about all Sass options
in node-sass
's npm package page.
Licensed under the MIT License.