Skip to content

Javi/sass-shake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sass-shake

npm

A command line utility to remove unused sass files

Description

The amount of .scss files in a large project can get out of hand. Unimported files sitting in the repo confuse developers.

sass-shake uses the Sass import tree to delete any .scss files in a given directory that are not depended upon. This is a different approach from something like uncss which finds dead code in the compiled css by rendering the page.

Installation

npm install -g sass-shake

Usage

Usage: sass-shake [options]

  Options:

    -V, --version                    output the version number
    -p, --path <path>                Path to shake relative to the current working directory. Current working directory by default
    -f, --entryPoints <entryPoints>  Sass entry point files
    -e, --exclude <exclusions>       An array of regexp pattern strings that are matched against files to exclude them from the unused files list (default: )
    -s, --silent                     Suppress logs
    -d, --deleteFiles                Delete the unused files
    -t, --hideTable                  Hide the unused files table
    -h, --help                       output usage information

By default, all top-level .scss files are considered entrypoints, but they can also be specified via the options.

About

🍑 Drop your unused sass dependencies

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 98.8%
  • CSS 1.2%