You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env node
varcleanCssCli=require('clean-css-cli');returncleanCssCli(process,functionbeforeMinify(cleanCssObject){/* do whatever magic you fancy */});
The text was updated successfully, but these errors were encountered:
Why:
* When used as a module a custom CLI implementation can hook into
pre-minify configuration and alter it;
* it may be useful as a way of customizing CLI beyond command line
arguments.
Why:
* When used as a module a custom CLI implementation can hook into
pre-minify configuration and alter it;
* it may be useful as a way of customizing CLI beyond command line
arguments.
So
bin/cleancss
looks something like:One could reuse the CLI to do some custom magic:
The text was updated successfully, but these errors were encountered: