Socket
Socket
Sign inDemoInstall

clean-css-cli

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-css-cli

A command-line interface to clean-css CSS optimization library


Version published
Weekly downloads
88K
decreased by-21.49%
Maintainers
1
Weekly downloads
 
Created

What is clean-css-cli?

The clean-css-cli npm package is a command-line interface for the clean-css library, which is used to minify and optimize CSS files. It provides a simple way to reduce the size of CSS files by removing unnecessary whitespace, comments, and other redundant elements, making the CSS more efficient for web use.

What are clean-css-cli's main functionalities?

Minify CSS

This command minifies the input CSS file (input.css) and writes the optimized output to a new file (output.css).

npx clean-css-cli -o output.css input.css

Minify Multiple CSS Files

This command takes multiple CSS files (file1.css and file2.css) and combines and minifies them into a single output file (output.css).

npx clean-css-cli -o output.css file1.css file2.css

Minify CSS with Source Maps

This command minifies the input CSS file (input.css) and generates a source map along with the optimized output file (output.css). Source maps help in debugging the minified CSS.

npx clean-css-cli --source-map -o output.css input.css

Minify CSS with Advanced Optimizations

This command applies advanced optimizations (level 2) while minifying the input CSS file (input.css) and writes the optimized output to a new file (output.css).

npx clean-css-cli --level 2 -o output.css input.css

Other packages similar to clean-css-cli

Keywords

FAQs

Package last updated on 08 Dec 2021

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