@dbetka/sass-watcher
v0.1.6
Published
Script to generate file with cached sass imports.
Downloads
307
Readme
@dbetka/sass-watcher
Script to generate file with cached sass imports.
Installation
npm i -D @dbetka/sass-watcher
Usage in package.json
With arguments in package.json
{
"scripts": {
"sass-watcher": "sass-watcher --input-dir src/style/ --output src/style/__cache__/index.sass"
}
}
With config file in package.json
{
"scripts": {
"sass-watcher": "sass-watcher --config configs/sass-watcher.json"
}
}
Example config file
{
"input-dir": "src/style/auto-import",
"output": "src/style/__cache__/index.sass"
}
Usage in code
src/style/index.sass file
@import "__cache__/index"
// Rest imports