{"id":21647841,"url":"https://github.com/markknol/hx-uglifyjs","last_synced_at":"2025-04-11T19:33:10.618Z","repository":{"id":69819694,"uuid":"128229918","full_name":"markknol/hx-uglifyjs","owner":"markknol","description":"Minify Haxe/JavaScript using uglifyjs","archived":false,"fork":false,"pushed_at":"2019-10-16T08:24:59.000Z","size":25,"stargazers_count":13,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T15:32:16.417Z","etag":null,"topics":["binding","haxe","javascript","minification","uglifyjs"],"latest_commit_sha":null,"homepage":null,"language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markknol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"markknol","custom":["http://paypal.me/markknol"]}},"created_at":"2018-04-05T15:58:28.000Z","updated_at":"2021-07-26T17:08:31.000Z","dependencies_parsed_at":"2023-03-30T14:32:40.635Z","dependency_job_id":null,"html_url":"https://github.com/markknol/hx-uglifyjs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-uglifyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-uglifyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-uglifyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-uglifyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markknol","download_url":"https://codeload.github.com/markknol/hx-uglifyjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248467229,"owners_count":21108611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding","haxe","javascript","minification","uglifyjs"],"created_at":"2024-11-25T06:51:56.127Z","updated_at":"2025-04-11T19:33:10.603Z","avatar_url":"https://github.com/markknol.png","language":"Haxe","funding_links":["https://patreon.com/markknol","http://paypal.me/markknol"],"categories":[],"sub_categories":[],"readme":"# Haxe/JavaScript Uglify\n[![Build Status](https://travis-ci.org/markknol/hx-uglifyjs.svg?branch=master)](https://travis-ci.org/markknol/hx-uglifyjs) [![Haxelib Version](https://img.shields.io/github/tag/markknol/hx-uglifyjs.svg?label=haxelib)](http://lib.haxe.org/p/uglifyjs)\n\nUglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.\n\nThis library runs the [`uglify-js` node module](https://www.npmjs.com/package/uglify-js) after your Haxe/JavaScript build completed.\n\n## Installation\n\nFirst: Install the node module using NPM:\n\nTo install locally on your project: (recommended)\n```cli\nnpm install uglify-js --save-dev\n```\n\nTo install globally use:\n```cli\nnpm install uglify-js -g\n```\n\nSecond: Install using [Haxelib](https://lib.haxe.org/p/uglifyjs/):\n\n```bash\nhaxelib install uglifyjs\n```\n\nTo use in code, add to your build hxml:\n\n```bash\n-lib uglifyjs\n\n\n# disable uglifyjs from being executed:\n-D uglifyjs_disabled\n\n# overwrite original output rather then generating a .min.js next to it\n-D uglifyjs_overwrite\n\n# disable compression\n-D uglifyjs_no_compress\n\n# disable mangling (renaming of local variables)\n-D uglifyjs_no_mangle\n\n# keep JavaScript comments\n-D uglifyjs_comments\n-D uglifyjs_comments=filter\n\n# keep line breaks and indent the generated code\n-D uglifyjs_beautify\n\n# override default uglify-js node module path\n-D uglifyjs_bin=path/to/bin/uglifyjs\n\n# enable source map generation\n-D uglifyjs_sourcemap\n\n# sourcemap generation options.\n# See UglifyJS docs for details on usage.\n## url='url/to/sourcemap/directory/OutFile.map'\n## value will default to just OutFile.map if define value is not specified\n-D uglifyjs_sourcemap_url[='url/to/sourcemap/directory/']\n\n## includeSources\n-D uglifyjs_sourcemap_sources\n\n## base=path/to/base\n-D uglifyjs_sourcemap_base=path/to/base\n\n## root=path/to/root\n-D uglifyjs_sourcemap_root=path/to/root\n\n## content=path/to/inputmap.js.map\n-D uglifyjs_sourcemap_content=path/to/inputmap.js.map\n\n## file=path/to/InFile.js\n-D uglifyjs_sourcemap_file=path/to/InFile.js\n\n```\n\n## Using Terser as alternative of Uglify\n\nIf you are using [`terser` node module](https://www.npmjs.com/package/terser) instead of `uglifyjs`, you can just use `-D uglifyjs_bin=node_modules/.bin/terser` (assuming it's a local dependency) since both API's are the same.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhx-uglifyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkknol%2Fhx-uglifyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhx-uglifyjs/lists"}