0.1.6 • Published 2 years ago

@dbetka/sass-watcher v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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
0.1.6

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago