Nondeterministic Polynomial Munchies

npm

Need private packages and team management tools?Check out npm Orgs. »

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.

install

npm i sass-shake

Downloadsweekly downloads

2

version

1.1.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability