Quickstart

html-minifier-next Quickstart

javimosch 8228193 963 B Updated

File contents

html-minifier-next Quickstart

Overview

html-minifier-next is a super-configurable web page minifier that handles HTML, CSS, JS, and SVG files.

Usage

Check version

html-minifier-next --version

Minify a file

html-minifier-next input.html -o output.html

Minify with options

html-minifier-next input.html --remove-comments --collapse-whitespace --minify-css --minify-js

Common Options

  • --remove-comments - Strip HTML comments
  • --collapse-whitespace - Remove empty whitespace
  • --minify-css - Minify CSS in style tags
  • --minify-js - Minify JavaScript in script tags
  • -o, --output - Output file path
  • -c, --config - JSON configuration file

Agent Usage

Use this plugin when the user wants to:

  • Optimize web page file sizes
  • Minify HTML/CSS/JS/SVG content
  • Reduce bandwidth usage
  • Speed up page load times

javimosch/supercli/tree/main/plugins/html-minifier-next/skills/quickstart commit 822819323b

Frequently asked questions

npx skillmds@latest add javimosch/quickstart-2963