a css-compression command line tool
yarn global add css-minify
npm install css-minify -g
If you want to deal with a single css file,you can do it like this:
css-minify -f filename
css-minify --file filename
Be sure that filename must be ended with ".css"
However,if you have too many css files to deal with,you can do it like this:
css-minify -d sourcedir
css-minify --dir sourcedir
All css source files are in the sourcedir directory
At last,you will see the minified css file,which is ended with
current directory /css-dist.