A lean and thorough npm package for trimming unused CSS from CSS files based on the selectors matched in provided HTML files
npm install rmrf-css
git clone https://github.com/ogbotemi-2000/rmrf-css.git
`
+ Or install the package locally via npm
`
npm install rmrf-css
`
_Both options above are quick and direct - the package has zero dependencies, no npm install required_
$3
The browser-based version is direct and progressive with short texts when necessary to guide its usage.
The section below comprises guides for using the package programatically
#### As a module
`js
const rem_css = require('rmrf-css');
rem_css({
html: / array of html filenames or a filename /,
css: / array of css filenames or a filename /
out: / output directory for the trimmed css files /
})
/* defaults to {html:'./', css:'css', out:'dist'}.
* the output directory is created if it does not exist
*/
rem_css()
`
___
#### Via invocation from the command-line
+ ##### Via npm run