Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.64 KB

readme.md

File metadata and controls

60 lines (45 loc) · 1.64 KB

Minifly 🗜️

Minify different types of files easily

Build Status XO code style

Highlights

  • Zero-config
  • Fast and easy to use
  • Uses async/await
  • Minifies files concurrently
  • Supports multiple file types

Install

npm install --global minifly

You can also use npx:

npx minifly

Usage

	Usage
		$ minifly <options>
 
	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
CSS (*.css) clean-css
JavaScript (*.js) terser
JPG (*.jpg) imagemin-mozjpeg
PNG (*.png) imagemin-pngquant
GIF (*.gif) imagemin-gifsicle
SVG (*.svg) imagemin-svgo

More file types will be supported soon 🦄

License

MIT