{"id":30310354,"url":"https://github.com/wangxingkang/babel-plugin-umi-css-modules","last_synced_at":"2026-05-08T19:31:06.986Z","repository":{"id":46920956,"uuid":"206753087","full_name":"wangxingkang/babel-plugin-umi-css-modules","owner":"wangxingkang","description":"处理样式文件引入路径，添加?cssModules","archived":false,"fork":false,"pushed_at":"2022-12-10T01:14:27.000Z","size":564,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T22:49:52.249Z","etag":null,"topics":["babel","babel-plugin","css-modules","umi"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wangxingkang.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}},"created_at":"2019-09-06T08:49:18.000Z","updated_at":"2025-07-01T04:08:09.000Z","dependencies_parsed_at":"2023-01-25T18:50:25.566Z","dependency_job_id":null,"html_url":"https://github.com/wangxingkang/babel-plugin-umi-css-modules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangxingkang/babel-plugin-umi-css-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxingkang%2Fbabel-plugin-umi-css-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxingkang%2Fbabel-plugin-umi-css-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxingkang%2Fbabel-plugin-umi-css-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxingkang%2Fbabel-plugin-umi-css-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangxingkang","download_url":"https://codeload.github.com/wangxingkang/babel-plugin-umi-css-modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangxingkang%2Fbabel-plugin-umi-css-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["babel","babel-plugin","css-modules","umi"],"created_at":"2025-08-17T14:11:14.504Z","updated_at":"2026-05-08T19:31:06.967Z","avatar_url":"https://github.com/wangxingkang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ebabel-plugin-umi-css-modules\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM version](https://img.shields.io/npm/v/@babel-plugins/umi-css-modules.svg?style=flat)](https://npmjs.org/package/@babel-plugins/umi-css-modules)\n[![NPM downloads](http://img.shields.io/npm/dm/@babel-plugins/umi-css-modules.svg?style=flat)](https://npmjs.org/package/@babel-plugins/umi-css-modules)\n\n\u003c/div\u003e\n\n## 项目由来\n\numi通用解决方案 [issue](https://github.com/umijs/umi/issues/1417)\n\n**主要功能**\n\n```\n// Input:\nimport styles from './a.css';\nimport './b.css';\n\n// Output:\nimport styles from './a.css?cssModules';\nimport './b.css';\n```\n\n## 安装\n\n```\n// npm\nnpm install --save-dev @babel-plugins/umi-css-modules\n\n// yarn\n\nyarn add --dev @babel-plugins/umi-css-modules\n```\n\n## 使用\n\n添加插件到你的babel配置文件中\n\n```\n\n{\n  \"plugins\": [\n    [\"@babel-plugins/umi-css-modules\"]\n  ]\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxingkang%2Fbabel-plugin-umi-css-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangxingkang%2Fbabel-plugin-umi-css-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangxingkang%2Fbabel-plugin-umi-css-modules/lists"}