Skip to content

Script to generate cache file with sass imports from specific directory

License

Notifications You must be signed in to change notification settings

dbetka/sass-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

Script to generate cache file with sass imports from specific directory

Resources

License

Stars

Watchers

Forks

Packages

No packages published