{"id":27085339,"url":"https://github.com/unplugin/unplugin-lightningcss","last_synced_at":"2026-01-22T19:31:29.396Z","repository":{"id":187887889,"uuid":"677769344","full_name":"unplugin/unplugin-lightningcss","owner":"unplugin","description":"Lightning CSS integration for Vite, Rollup, esbuild, Webpack, Vue CLI, and more.","archived":false,"fork":false,"pushed_at":"2026-01-18T10:03:27.000Z","size":498,"stargazers_count":29,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-18T17:42:57.169Z","etag":null,"topics":[],"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/unplugin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"sxzz"}},"created_at":"2023-08-12T15:23:41.000Z","updated_at":"2025-12-21T16:32:34.000Z","dependencies_parsed_at":"2023-10-14T23:13:41.645Z","dependency_job_id":"9ef2bbd6-a6ef-4780-9c5e-f6bd6b897ba6","html_url":"https://github.com/unplugin/unplugin-lightningcss","commit_stats":null,"previous_names":["sxzz/unplugin-lightningcss","unplugin/unplugin-lightningcss"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/unplugin/unplugin-lightningcss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-lightningcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-lightningcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-lightningcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-lightningcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unplugin","download_url":"https://codeload.github.com/unplugin/unplugin-lightningcss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-lightningcss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"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":"2025-04-06T04:25:53.624Z","updated_at":"2026-01-22T19:31:29.390Z","avatar_url":"https://github.com/unplugin.png","language":"TypeScript","readme":"# unplugin-lightningcss\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![JSR][jsr-src]][jsr-href]\n[![Unit Test][unit-test-src]][unit-test-href]\n\nLightning CSS integration for Vite, Rollup, esbuild, Webpack, Vue CLI, and more.\n\n## Installation\n\n```bash\nnpm i -D unplugin-lightningcss\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport LightningCSS from 'unplugin-lightningcss/vite'\n\nexport default defineConfig({\n  plugins: [LightningCSS()],\n})\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\nSince Rollup does not support CSS out of the box, you need to use a CSS plugin like [`rollup-plugin-css-only`](https://github.com/thgh/rollup-plugin-css-only).\n\n```ts\n// rollup.config.js\nimport css from 'rollup-plugin-css-only'\nimport LightningCSS from 'unplugin-lightningcss/rollup'\n\nexport default {\n  plugins: [LightningCSS(), css()],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eesbuild\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// esbuild.config.js\nimport { build } from 'esbuild'\n\nbuild({\n  plugins: [require('unplugin-lightningcss/esbuild')()],\n})\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [require('unplugin-lightningcss/webpack')()],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n## Options\n\n```ts\nimport { Features } from 'lightningcss'\n\nexport default {\n  plugins: [\n    LightningCSS({\n      options: {\n        include: Features.Nesting,\n      },\n\n      /**\n       * Whether to export the transformed CSS as a default string export.\n       * @default false\n       */\n      asString: false,\n    }),\n  ],\n}\n```\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License © 2023-PRESENT [Kevin Deng](https://github.com/sxzz)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/unplugin-lightningcss.svg\n[npm-version-href]: https://npmjs.com/package/unplugin-lightningcss\n[npm-downloads-src]: https://img.shields.io/npm/dm/unplugin-lightningcss\n[npm-downloads-href]: https://www.npmcharts.com/compare/unplugin-lightningcss?interval=30\n[jsr-src]: https://jsr.io/badges/@unplugin/lightningcss\n[jsr-href]: https://jsr.io/@unplugin/lightningcss\n[unit-test-src]: https://github.com/unplugin/unplugin-lightningcss/actions/workflows/unit-test.yml/badge.svg\n[unit-test-href]: https://github.com/unplugin/unplugin-lightningcss/actions/workflows/unit-test.yml\n","funding_links":["https://github.com/sponsors/sxzz"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-lightningcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funplugin%2Funplugin-lightningcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-lightningcss/lists"}