srodsrodCommunityยท1 Agent Skills Included

node-minify

Compress JavaScript, CSS, HTML, JSON, and images with one library

Compresses JavaScript, CSS, HTML, JSON, and image files through one unified Node.js API. Removes the need to configure separate minifiers by wrapping 22 compressors like terser, esbuild, and lightningcss behind a single minify() call. Supports glob patterns, source maps, in-memory content, image conversion to WebP/AVIF, a CLI, and a GitHub Action for automated builds.
npx skills add srod/node-minify --all -g -y
Available:

Gives AI coding agents the monorepo architecture, build commands, compressor selection rules, and coding constraints needed to work on or extend this minification library correctly.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’