Socket
Socket
Sign inDemoInstall

@unocss/cli

Package Overview
Dependencies
13
Maintainers
1
Versions
314
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/cli


Version published
Maintainers
1
Created

Package description

What is @unocss/cli?

@unocss/cli is a CLI tool for UnoCSS, a utility-first CSS framework that generates utility classes on-demand. It allows you to compile and optimize your CSS based on the utilities you use in your project.

What are @unocss/cli's main functionalities?

Compile CSS

This command compiles the CSS utilities used in the `src/index.html` file and outputs the optimized CSS to `dist/styles.css`.

unocss src/index.html -o dist/styles.css

Watch Mode

This command runs UnoCSS in watch mode, which means it will automatically recompile the CSS whenever changes are detected in the `src/index.html` file.

unocss src/index.html -o dist/styles.css --watch

Custom Config

This command allows you to specify a custom configuration file (`unocss.config.js`) for UnoCSS, enabling you to customize the utility classes and other settings.

unocss src/index.html -o dist/styles.css --config unocss.config.js

Other packages similar to @unocss/cli

Readme

Source

@unocss/cli

The CLI for UnoCSS. A perfect fit for traditional backends.

Documentation

Please refer to the documentation.

License

MIT License © 2021-PRESENT Anthony Fu

MIT License © 2021-PRESENT Johann Schopplich

FAQs

Last updated on 19 Aug 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc