sass-shake

1.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    1
    • latest

Version History

Package Sidebar

Install

npm i sass-shake

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

15.5 kB

Total Files

21

Last publish

Collaborators

  • sklingler93