Skip to content

kawakamimoeki/uchini

Repository files navigation

Uchini (Unused Sass Finder)

Installation

npm i -g uchini

Usage

uchini ls --scss path/to/scss --content 'path/**/*.html' --output output.json

output.json is like this:

[
  {
    "selector": ".header",
    "positions": [
      "frontend/stylesheets/_layout.scss:20:2"
    ]
  },
  {
    "selector": ".card",
    "positions": [
      "frontend/stylesheets/_card.scss:1:0"
    ]
  }
]