Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-minify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-minify

a css minify tool

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
increased by43.84%
Maintainers
1
Weekly downloads
 
Created
Source

css-minify

a css-compression command line tool

Install:

yarn global add css-minify

or

npm install css-minify -g

Usage:

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

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.

Keywords

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc