Registry / devops / goalup-minify

goalup-minify

JSON →
library1.3.0jsnpmunverified

goalup-minify is a CLI tool that uses gulp and other popular minifiers (UglifyJS, clean-css, htmlmin, imagemin) to compress JS, CSS, HTML, and image files for production-ready static websites. Version 1.3.0 (stable, last updated 2019) runs a single command to output individually processed files to a /public directory. Unlike bundlers (Webpack, Parcel), it processes files one-to-one without bundling. Supports autoprefixing and inline asset compression via HTML attributes. Low maintenance; no recent updates. Ideal for simple static sites without an existing build pipeline.

npm install goalup-minify
INSTALL
IMPORT
SIG · GOALUP-MINIFY
G
goalup-minify
devopsjavascriptv1.3.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.

goalup-minify CLI
npx goalup-minify or global install + goalup-minify
Unpublishing or direct require('goalup-minify')
This is a CLI tool, not a library. Import via command line. ESM/CJS not applicable.
goalup-minify programmatic API
N/A – no programmatic API exposed
const minify = require('goalup-minify')
Goalup-minify has no JavaScript API. Only use CLI.

Shows global installation and a basic minification command that processes JS, CSS, and HTML into a /public folder.

# 1. Install globally npm install -g goalup-minify # 2. Run in your project folder (e.g., /examples) cd /path/to/your/static/project goalup-minify --js ./js --css ./css --html ./index.html --dest ./public # 3. Check output ls ./public
Debug
Known issues
breakingCLI options changed between v0.x and v1.x – check --help for updated flags.
fix
Update to v1.x and review current options via goalup-minify --help.
affects: >=0.0.0 <1.0.0
deprecatedImage minification via imagemin may be outdated; no imagemin plugin updates since 2020.
fix
Consider using a separate image optimization tool (e.g., sharp, squoosh-cli).
affects: >=1.0.0
gotchaPaths are relative to the working directory, not the script location. Running from another directory may break output paths.
fix
Always run goalup-minify from your project root or use absolute paths.
affects: >=1.0.0
gotchaThe --dest option cannot be the same as the working directory (safety check). This may cause confusion if you expect in-place minification.
fix
Specify a different output directory, e.g., --dest ./dist.
affects: >=1.2.0
gotchaNo bundling – each file is processed individually; imports/exports are not resolved. Not suitable for ES module projects.
fix
Use a bundler like Webpack or Rollup if you need module resolution.
affects: >=0.0.0
Errors
Common errors & fixes
goalup-minify: command not found
goalup-minify is not installed globally or not in PATH.
fix
Install globally: npm install -g goalup-minify. Or run via npx: npx goalup-minify
Error: Cannot find module 'gulp'
gulp is a peer dependency not automatically installed; npm may have skipped it.
fix
Run: npm install -g gulp goalup-minify
TypeError: Cannot read property 'pipe' of undefined
Input file or path does not exist or is invalid.
fix
Verify that the provided file/path exists relative to working directory. Use absolute paths if unsure.
Upgrade
Version history
1.3.0latest on npm
Audit
Dependencies
gulprequiredstatic site generator / task runner used internally
uglify-jsrequiredminifies JavaScript files
clean-cssrequiredminifies CSS files
html-minifierrequiredminifies HTML files
imageminrequiredcompresses image files
autoprefixeroptionaladds vendor prefixes to CSS
Agent activity
4 hits · last 30 days
node
4
Resources
goalup-minify — npm install goalup-minify · libregistry