{"id":42294,"library":"web-crush-cli","title":"Web-Crush CLI","description":"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.","status":"active","version":"1.2.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","cli","minify","static-site","vanilla","build-tool"],"install":[{"cmd":"npm install web-crush-cli","lang":"bash","label":"npm"},{"cmd":"yarn add web-crush-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add web-crush-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"JavaScript minification engine","package":"terser","optional":true},{"reason":"CSS minification engine","package":"clean-css","optional":true},{"reason":"HTML minification engine","package":"html-minifier","optional":true}],"imports":[{"note":"This is a CLI tool, not a library. Use npx or install globally.","wrong":"require('web-crush-cli')","symbol":"run","correct":"run from CLI: npx web-crush-cli"}],"quickstart":{"code":"npx web-crush-cli","lang":"javascript","description":"Runs the minifier in the current directory, outputting to public/."},"warnings":[{"fix":"Remove 'assets' from web-crush.config.json; it is ignored.","message":"The 'assets' configuration key is no longer needed; assets are auto-detected.","severity":"deprecated","affected_versions":">=1.2.0"},{"fix":"Add { \"dropConsole\": true } to web-crush.config.json.","message":"By default, console.log statements are preserved (Recruiter Safe Mode). To remove them, set dropConsole: true.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Backup public/ or set outDir to a different location.","message":"The output directory is overwritten each run; any manual changes in public/ will be lost.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Update paths if relying on flat output.","message":"Version 1.0.0 changed the output structure to preserve original folder hierarchy; earlier versions flattened files.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.2.0':37 'anson':55 'asset':35 'automat':92 'build':14,101 'build-tool':100 'clean':41 'clean-css':40 'cli':4,8,94 'command':62 'config':13 'configur':64 'console.logs':74 'copi':32 'crush':3,7 'css':23,42 'deep':90 'default':76 'file':26 'folder':29 'handl':89 'heavier':78 'hood':49 'html':22,45 'html-minifi':44 'jaison':56 'javascript':93 'js':25 'keep':73 'licens':53 'like':80 'minifi':21,46,95 'mit':52 'mode':71 'npx':61 'offer':58 'option':63 'preserv':28 'project':19 'recruit':69 'recurs':91 'releas':50 'requir':85 'safe':70 'setup':87 'simpl':60 'site':98 'static':97 'static-sit':96 'structur':30 'terser':39 'tool':15,79,102 'unlik':77 'use':38 'vanilla':17,99 'version':36 'via':65 'vite':81 'web':2,6,18 'web-crush':1,5 'web-crush.config.json':66 'webpack':83 'zero':12 'zero-config':11","created_at":"2026-06-04T18:56:33.793485+00:00","updated_at":"2026-06-04T18:56:33.793485+00:00","problems":[{"fix":"Install Node.js >=12 or run npm install -g web-crush-cli","cause":"npx not installed or out of date","error":"npx: command not found: web-crush-cli"},{"fix":"Use the CLI tool via npx or globally; do not require() it.","cause":"Missing dependency when using as a library (wrong import)","error":"Error: Cannot find module 'terser'"},{"fix":"Run the command in a directory containing at least one .html, .css, or .js file.","cause":"No HTML, CSS, or JS files found in current directory","error":"public/ folder not created"},{"fix":"Ignore or create the file if you need custom options.","cause":"Optional config file missing but not required","error":"ENOENT: no such file or directory, open 'web-crush.config.json'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"web-crush-cli","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}