{"id":17084533,"url":"https://github.com/nsaunders/babel-plugin-template-css-minifier","last_synced_at":"2026-04-19T14:01:26.017Z","repository":{"id":65552670,"uuid":"594079660","full_name":"nsaunders/babel-plugin-template-css-minifier","owner":"nsaunders","description":"Minifies CSS embedded in template literals.","archived":false,"fork":false,"pushed_at":"2023-10-06T20:41:16.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T11:36:50.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nsaunders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-01-27T14:55:07.000Z","updated_at":"2023-01-27T18:02:01.000Z","dependencies_parsed_at":"2024-11-30T12:34:48.384Z","dependency_job_id":null,"html_url":"https://github.com/nsaunders/babel-plugin-template-css-minifier","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.4375,"last_synced_commit":"ed931d7209d387943504be6289f7089050a61bba"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nsaunders/babel-plugin-template-css-minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsaunders%2Fbabel-plugin-template-css-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsaunders%2Fbabel-plugin-template-css-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsaunders%2Fbabel-plugin-template-css-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsaunders%2Fbabel-plugin-template-css-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsaunders","download_url":"https://codeload.github.com/nsaunders/babel-plugin-template-css-minifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsaunders%2Fbabel-plugin-template-css-minifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-14T13:07:54.190Z","updated_at":"2026-04-19T14:01:25.994Z","avatar_url":"https://github.com/nsaunders.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-template-css-minifier \u003ca href=\"https://github.com/nsaunders/babel-plugin-template-css-minifier/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/nsaunders/babel-plugin-template-css-minifier/ci.yml?branch=master\" alt=\"Build status\"\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/babel-plugin-template-css-minifier\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/babel-plugin-template-css-minifier.svg\" alt=\"Latest Release\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/nsaunders/babel-plugin-template-css-minifier/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/nsaunders/babel-plugin-template-css-minifier.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\nThis [Babel](http://babeljs.io) plugin minifies CSS code embedded within a [template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals). Simply tag the template literal with a leading `/* css */` comment to activate the plugin.\n\n## Example\n\n**Input**\n```javascript\nconst css = /*css*/`\n  body {\n    height: 100%;\n  }\n`;\n```\n**Output**\n```javascript\nconst css = /*css*/`body{height: 100%;}`;\n```\n\n## Configuration\n\nThe plugin doesn't require any configuration in itself. Your `.babelrc` file can be as simple as this:\n\n**.babelrc**\n```json\n{ \"plugins\": [\"babel-plugin-template-css-minifier\"] }\n```\n\nDue to Babel's [first-to-last plugin ordering](https://babeljs.io/docs/en/plugins/#plugin-ordering), this plugin should be placed at or near the beginning of the list of plugins so that it runs before template literals are transformed by another plugin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsaunders%2Fbabel-plugin-template-css-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsaunders%2Fbabel-plugin-template-css-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsaunders%2Fbabel-plugin-template-css-minifier/lists"}