A CLI tool that optimizes static assets (HTML, CSS, JS, SVG, images) by applying minification and compression using popular modules like Terser, csso, html-minifier, Sharp, and SVGO. Current stable version is 0.6.6. Release cadence is infrequent; last update was several years ago. Key differentiator is a single command to optimize all assets recursively, with multipage support and built-in WebP conversion. However, the project appears unmaintained with no recent releases.
npm install arjan-optimizeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: optimizing HTML, CSS, JS, and converting images to WebP.
Migrate to alternative tools.
Update import to 'arjan-optimize/dist' or switch to ESM.
Process assets in batches or use alternative tools with streaming support.
Install system dependencies: libvips, or use the --ignore-scripts flag and install sharp separately.
Use import instead of require().
Run 'npm rebuild sharp' or install libvips (Linux).
Ensure the inputDir exists and is readable.