https://github.com/Gausix/Minix
A simple Rust-based minifier for JavaScript and CSS that efficiently reduces file size by removing unnecessary characters, whitespace, and comments without affecting functionality.
https://github.com/Gausix/Minix
cli minify-css minify-javascript rust terminal utils
Last synced: 3 months ago
JSON representation
A simple Rust-based minifier for JavaScript and CSS that efficiently reduces file size by removing unnecessary characters, whitespace, and comments without affecting functionality.
- Host: GitHub
- URL: https://github.com/Gausix/Minix
- Owner: Gausix
- License: mit
- Created: 2024-05-10T05:18:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-13T18:14:05.000Z (4 months ago)
- Last Synced: 2025-02-13T23:45:32.738Z (3 months ago)
- Topics: cli, minify-css, minify-javascript, rust, terminal, utils
- Language: Rust
- Homepage: https://crates.io/crates/minix
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minix   
A straightforward minifier for JavaScript and CSS files, developed using Rust. This tool efficiently reduces the size of JS and CSS files by removing unnecessary characters, whitespace, and comments without affecting functionality. Utilizing Rust’s performance and safety features, it offers a fast and reliable solution for optimizing web assets, improving load times and overall website performance. Ideal for developers looking for a lightweight and effective way to minimize their codebase.
To Install using [crates.io](https://crates.io)
```shell
cargo install minix
```### Basic example usage:
JS:
```shell
minix -i file.js -o file.min.js# OR
minix -i js/*.js -o bundle.js
# OR, with --watch mode
minix -i js/*.js -o bundle.js -w
```CSS:
```shell
minix -i file.css -o file.min.css# OR
minix -i css/*.css -o bundle.css
# OR, with --watch mode
minix -i css/*.css -o bundle.css -w
```