Riot Sass Preprocessor
Installation
npm install --save-dev @epandco/riot-sass-preprocessor
Usage
To initialize the preprocessor, call initRiotSassPreprocessor
, passing in a reference to registerPreprocessor
from
@riotjs/compiler
:
const { registerPreprocessor } = require('@riotjs/compiler');
const { initRiotSassPreprocessor } = require('@epandco/riot-sass-preprocessor');
initRiotSassPreprocessor(registerPreprocessor);
Additional options can be provided with a 2nd argument:
const { registerPreprocessor } = require('@riotjs/compiler');
const { initRiotSassPreprocessor } = require('@epandco/riot-sass-preprocessor');
initRiotSassPreprocessor(registerPreprocessor, {
lint: false,
outputStyle: 'expanded'
});
Available options:
interface PreprocessorOptions {
lint?: boolean;
stylelintConfigPath?: string;
includePaths?: string[];
outputStyle?: 'compressed' | 'expanded';
}