https://github.com/xxczaki/minifly
🗜️ Minify different types of files easily
https://github.com/xxczaki/minifly
clean-css concurrently css fast globby html html-minifier javascript js minifier minifiers minifly minify nodejs terser
Last synced: about 1 month ago
JSON representation
🗜️ Minify different types of files easily
- Host: GitHub
- URL: https://github.com/xxczaki/minifly
- Owner: xxczaki
- License: mit
- Created: 2019-04-22T22:13:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T20:23:52.000Z (over 5 years ago)
- Last Synced: 2025-03-25T09:03:46.965Z (about 2 months ago)
- Topics: clean-css, concurrently, css, fast, globby, html, html-minifier, javascript, js, minifier, minifiers, minifly, minify, nodejs, terser
- Language: JavaScript
- Size: 3.13 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
# Minifly 🗜️
> Minify different types of files easily
[](https://travis-ci.org/xxczaki/minifly)
[](https://github.com/xojs/xo)# Highlights
- Zero-config
- Fast and easy to use
- Uses async/await
- Minifies files concurrently
- Supports [multiple file types](#supported-files)# Install
```bash
npm install --global minifly
```
You can also use `npx`:
```bash
npx minifly
```# Usage
```bash
Usage
$ minifly
Options
--output, -o Output directory (Default: minifly)
--ignore, -i Ignore specific files or directories
--minExt, -m File extensions of minified files (Default: .min)
--concurrency, -c Max number of minifiers running at the same time (Default: CPU cores)
Examples
$ minifly
$ minifly -i 'index.js,dist/*.css' -o dist
$ minifly -m ''
```## Supported files
| Type | Minifier |
| ------------- | ------------- |
| HTML (*.html) | [html-minifier](https://github.com/kangax/html-minifier) |
| CSS (*.css) | [clean-css](https://github.com/jakubpawlowicz/clean-css) |
| JavaScript (*.js) | [terser](https://github.com/terser-js/terser) |
| JPG (*.jpg) | [imagemin-mozjpeg](https://github.com/imagemin/imagemin-mozjpeg) |
| PNG (*.png) | [imagemin-pngquant](https://github.com/imagemin/imagemin-pngquant) |
| GIF (*.gif) | [imagemin-gifsicle](https://github.com/imagemin/imagemin-gifsicle) |
| SVG (*.svg) | [imagemin-svgo](https://github.com/imagemin/imagemin-svgo) |More file types will be supported soon :unicorn:
## License
MIT