Reduce
Ruby/CLI: minify javascript + stylesheets, lossless image optimization
Install / Use
/learn @grosser/ReduceREADME
Lossless reduction for js, css, html, xml, jpg, png, gif
Install
install ruby + rubygems
sudo gem install reduce
Usage
reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.js
Options
-o, --overwrite overwrite file
-v, --version Show Version
-h, --help Show this.
Ruby
reduced_data = Reduce.reduce('files/bla.js')
How does it work?
- uses web-based lossless image reduction service Smush.it / PunyPng through smusher
- uses YUI compressor to minify css/js
- uses htmlcompressor to minify html/xml
Author
Contributors
Michael Grosser<br/> grosser.michael@gmail.com<br/> License: MIT
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
