Registry / devops / web-minifier

web-minifier

JSON →
library1.0.0jsnpmunverified

A CLI tool to minify HTML, CSS, and JS files in a website project and output them to a build folder. Current version 1.0.0 is the initial release with no further updates. It operates globally as a command-line utility. Unlike build tools (webpack, rollup), it offers a zero-config, single-command approach for simple static site minification.

npm install web-minifier
INSTALL
IMPORT
SIG · WEB-MINIFIER
W
web-minifier
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

build-web
npx web-minifier
build-web
Global installation required; npx is preferred.
web-minifier
npm i -g web-minifier
npm i web-minifier --save-dev
Designed for global use, not local devDependency.

Shows how to minify a website in the current directory using the CLI.

npx web-minifier # or if installed globally: build-web
Debug
Known issues
gotchaOnly works on directory containing index.html in root; no config for custom entry points.
fix
Ensure your website root contains index.html.
affects: 1.0.0
gotchaOverwrites 'build' folder if it exists; no backup or merge.
fix
Backup any existing build folder before running.
affects: 1.0.0
gotchaNo support for modern JavaScript features like ES modules; may break syntax.
fix
Use a more comprehensive bundler for modern JS.
affects: 1.0.0
Errors
Common errors & fixes
build-web: command not found
Package not installed globally or not in PATH.
fix
Run 'npm i -g web-minifier' or use 'npx web-minifier'.
ENOENT: no such file or directory, open 'index.html'
Current directory does not contain index.html.
fix
Navigate to the root of your website project.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
web-minifier — npm install web-minifier · libregistry