node-minify
Compress JavaScript, CSS, HTML, JSON, and images with one library
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install node-minify?โผ
Run `npx skills add srod/node-minify --all -g -y` in your terminal to install this skill globally for your AI agent.
How to minify JavaScript and CSS files in Node.js?โผ
Install @node-minify/core plus a compressor like terser or lightningcss, then call minify() with your input and output paths. It also accepts glob patterns to bundle many files at once.
Which compressor should I use with node-minify?โผ
Use terser for JavaScript, lightningcss for CSS, html-minifier for HTML, and sharp for images. These are the recommended defaults for speed and reliability.
Can node-minify optimize images?โผ
Yes. It converts PNG and JPEG images to WebP or AVIF with sharp, optimizes SVGs with svgo, and compresses other formats with imagemin.
Does node-minify work in CI/CD pipelines?โผ
Yes. It ships a command-line interface and an official GitHub Action that can auto-discover and minify files on every pull request.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core