tristanbudd/Minified Branch Builder

Minifies CSS & JS and pushes them to a dedicated production branch, rewriting asset links.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_tokenGitHub token for pushing the new branchyes${{ github.token }}
target_branchThe branch to push minified code tonoproduction
source_dirThe root directory to scan for CSS/JSno.
commit_messageCommit message for the minified branchnochore: automated asset minification
minify_cssEnable CSS minification (true/false)notrue
minify_jsEnable JavaScript minification (true/false)notrue
exclude_dirsComma-separated list of directories to ignorenonode_modules,.git,dist
dry_runRun without committing or pushingnofalse
force_pushForce push to the target branchnotrue
keep_original_fileKeep the original unminified filenofalse
generate_backup_fileGenerate a .backup file for the original assetnotrue
hash_filesAppend a content hash to minified filenames (e.g., style.abcdef12.min.css)nofalse

no outputs