{"id":13807243,"url":"https://github.com/mainmatter/ember-hbs-minifier","last_synced_at":"2026-01-12T02:00:00.028Z","repository":{"id":15735758,"uuid":"78683617","full_name":"mainmatter/ember-hbs-minifier","owner":"mainmatter","description":"Stripping whitespace out of your Handlebars templates","archived":false,"fork":false,"pushed_at":"2025-12-31T09:58:06.000Z","size":3135,"stargazers_count":49,"open_issues_count":50,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-04T03:50:54.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mainmatter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-01-11T21:57:37.000Z","updated_at":"2025-04-22T21:32:52.000Z","dependencies_parsed_at":"2023-10-15T00:27:55.590Z","dependency_job_id":"e43cbef3-e979-4bf6-bb57-68029b85f3b8","html_url":"https://github.com/mainmatter/ember-hbs-minifier","commit_stats":{"total_commits":641,"total_committers":17,"mean_commits":"37.705882352941174","dds":0.6583463338533542,"last_synced_commit":"c35076b13de88194db635c3108c1bfcbdf76c795"},"previous_names":["simplabs/ember-hbs-minifier"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mainmatter/ember-hbs-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainmatter%2Fember-hbs-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainmatter%2Fember-hbs-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainmatter%2Fember-hbs-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainmatter%2Fember-hbs-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainmatter","download_url":"https://codeload.github.com/mainmatter/ember-hbs-minifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainmatter%2Fember-hbs-minifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-08-04T01:01:23.069Z","updated_at":"2026-01-12T02:00:00.003Z","avatar_url":"https://github.com/mainmatter.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Minifiers"],"readme":"ember-hbs-minifier\n==============================================================================\n\nStripping whitespace out of your Handlebars templates\n\n__Disclaimer:__ This is an experiment and might change in the future. Do not\nuse this for production yet unless you understand the consequences!\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.20 or above\n* Ember CLI v3.20 or above\n* Node.js 12 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-hbs-minifier\n```\n\nUsage\n------------------------------------------------------------------------------\n\n`ember-hbs-minifier` will remove unnecessary text nodes from your templates\nand collapse whitespace into single space characters. This is all done\nautomatically for you (without having to use e.g. `{{~foo~}}`) but is\ndisabled for certain situations:\n\n- Inside of `\u003cpre\u003e\u003c/pre\u003e` tags\n\n- Inside of `{{#no-minify}}{{/no-minify}}` blocks\n  (these will be stripped from the template)\n\nPlease note that this does not work across component/template boundaries.\n\nWhat happens in particular is:\n\n- Text nodes containing only whitespace are collapsed to `' '`\n  (a single space character)\n\n- Leading or trailing text nodes inside of tags or handlebars blocks\n  containing only whitespace are removed entirely\n\n\n### Configuration\n\nIf you want to disable the whitespace stripping behavior for other tags,\ncomponents, or elements with certain CSS classes you can adjust the default\nconfiguration in your `ember-cli-build.js` file:\n\n```javascript\n  let app = new EmberApp({\n    'ember-hbs-minifier': {\n      skip: {\n        classes: [],\n        // skip whitespace stripping in `\u003cpre\u003e\u003c/pre\u003e` tags\n        elements: ['pre'], \n        // skip whitespace stripping in `{{#no-minify}}{{/no-minify}}` blocks\n        components: ['no-minify'],\n      },\n    },\n  });\n```\n\n\nLicense\n------------------------------------------------------------------------------\n\nember-hbs-minifier is developed by and \u0026copy;\n[Mainmatter GmbH](http://mainmatter.com) and contributors. It is released under the\n[MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainmatter%2Fember-hbs-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainmatter%2Fember-hbs-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainmatter%2Fember-hbs-minifier/lists"}