{"id":16489066,"url":"https://github.com/thundernet8/vite-plugin-auto-css-modules","last_synced_at":"2025-07-02T11:37:59.466Z","repository":{"id":57393064,"uuid":"343367931","full_name":"thundernet8/vite-plugin-auto-css-modules","owner":"thundernet8","description":"same as babel-plugin-auto-css-modules but for vite","archived":false,"fork":false,"pushed_at":"2023-01-07T12:56:49.000Z","size":15,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-01T08:02:56.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thundernet8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-03-01T10:00:38.000Z","updated_at":"2022-03-08T11:22:23.000Z","dependencies_parsed_at":"2023-02-07T05:16:11.680Z","dependency_job_id":null,"html_url":"https://github.com/thundernet8/vite-plugin-auto-css-modules","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2Fvite-plugin-auto-css-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2Fvite-plugin-auto-css-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2Fvite-plugin-auto-css-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2Fvite-plugin-auto-css-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thundernet8","download_url":"https://codeload.github.com/thundernet8/vite-plugin-auto-css-modules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553069,"owners_count":19491368,"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":[],"created_at":"2024-10-11T13:42:55.955Z","updated_at":"2025-02-12T21:30:56.877Z","avatar_url":"https://github.com/thundernet8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-auto-css-modules\nsame as babel-plugin-auto-css-modules but for vite\n\n## install\n\n```bash\nyarn add vite-plugin-auto-css-modules -D\n```\n\n## usage\n\n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite';\nimport autoCSSModulePlugin from 'vite-plugin-auto-css-modules';\n\nexport default defineConfig({\n  // ... other config\n  plugins: [\n    autoCSSModulePlugin(),\n  ],\n});\n```\n\n```tsx\n// this will be modulized css\nimport $ from './index.css';\n\n// this will be normal css\nimport './index.css';\n\n// you do not need to name your style file to xx.module.css\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernet8%2Fvite-plugin-auto-css-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundernet8%2Fvite-plugin-auto-css-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernet8%2Fvite-plugin-auto-css-modules/lists"}