Web-Crush CLI is a zero-config build tool for vanilla web projects that minifies HTML, CSS, and JS files while preserving folder structure and copying all other assets. Version 1.2.0 uses Terser, Clean-CSS, and html-minifier under the hood. Released under MIT license by Anson Jaison, it offers a simple npx command, optional configuration via web-crush.config.json, and a 'Recruiter Safe Mode' that keeps console.logs by default. Unlike heavier tools like Vite or Webpack, it requires no setup and handles deep recursion automatically.
npm install web-crush-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs the minifier in the current directory, outputting to public/.
Remove 'assets' from web-crush.config.json; it is ignored.
Add { "dropConsole": true } to web-crush.config.json.Backup public/ or set outDir to a different location.
Update paths if relying on flat output.
Install Node.js >=12 or run npm install -g web-crush-cli
Use the CLI tool via npx or globally; do not require() it.
Run the command in a directory containing at least one .html, .css, or .js file.
Ignore or create the file if you need custom options.