
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
yarn global add css-minify
or
npm install css-minify -g
yarn add css-minify
or
npm install css-minify
If you want to deal with a single css file,you can do it like this:
css-minify -f filename
or
css-minify --file filename
If no file / dir are specified, check if STDIN has data, and if so, run the minifier and print on STDOUT
> echo "body { color: #ff0000; }" | node bin/css-minify.js
body{color:red}
Warning:
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
or
css-minify --dir sourcedir
And then, if you want to specify output directory, use -o
or output
like below(introduced in 1.1.0):
css-minify -d sourcedir -o distdir
or
css-minify --dir sourcedir --output distdir
Tips:
All css source files are in the sourcedir directory
At last, you will see the minified css file, which is ended with .min.css
in directory specified by -o
or --output
, which is css-dist
by default.
FAQs
a css minify tool
The npm package css-minify receives a total of 3,644 weekly downloads. As such, css-minify popularity was classified as popular.
We found that css-minify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.