{"id":20207917,"url":"https://github.com/thearchitector/rollup-plugin-lightningcss","last_synced_at":"2026-04-11T06:44:51.078Z","repository":{"id":143398745,"uuid":"615593675","full_name":"thearchitector/rollup-plugin-lightningcss","owner":"thearchitector","description":"Use Parcel's LightningCSS transformer and minifier with Rollup","archived":false,"fork":false,"pushed_at":"2023-03-22T01:50:52.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T02:56:29.061Z","etag":null,"topics":["browserslist","css","lightningcss","minify","plugin","rollup","rollup-plugin"],"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/thearchitector.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-03-18T05:01:28.000Z","updated_at":"2023-08-30T17:45:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"72fe6a3c-3a43-46bd-baa9-9ccd0a5d4574","html_url":"https://github.com/thearchitector/rollup-plugin-lightningcss","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thearchitector%2Frollup-plugin-lightningcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thearchitector%2Frollup-plugin-lightningcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thearchitector%2Frollup-plugin-lightningcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thearchitector%2Frollup-plugin-lightningcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thearchitector","download_url":"https://codeload.github.com/thearchitector/rollup-plugin-lightningcss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644558,"owners_count":19996179,"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":["browserslist","css","lightningcss","minify","plugin","rollup","rollup-plugin"],"created_at":"2024-11-14T05:33:17.831Z","updated_at":"2025-11-11T20:34:50.493Z","avatar_url":"https://github.com/thearchitector.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-lightningcss\n\n![latest version](https://img.shields.io/npm/v/rollup-plugin-lightningcss?label=version\u0026style=flat-square)\n![downloads per month](https://img.shields.io/npm/dm/rollup-plugin-lightningcss?style=flat-square)\n![license](https://img.shields.io/github/license/thearchitector/rollup-plugin-lightningcss?style=flat-square)\n\nA Rollup plugin for using [LightningCSS](https://lightningcss.dev/) to transform and minify your application's CSS files.\n\n## Usage\n\nCurrently the plugin supports transforming separate CSS files using a shared configuration block. Specific options for that configuration block can be found in the [LightningCSS documentation](https://lightningcss.dev/docs.html), or [via the source code](https://github.com/parcel-bundler/lightningcss/blob/master/node/index.d.ts) for a more complete overview.\n\nSource maps will be generated if the `sourceMap` option is passed as `true` in the configuration.\n\nThis plugin doesn't use anything special, so it should work with virtually all Rollup versions (as long as it implements the `generateBundle` hook).\n\n### Example\n\nA simple example plugin configuration might look something this, taken from [`openendpoint.tools/ping/`](https://github.com/thearchitector/openendpoint-tools/blob/main/polypong/rollup.config.js).\n\n```js\n// rollup.config.js\nimport lightningcss from \"rollup-plugin-lightningcss\";\n\nexport default {\n  input: \"src/polypong.js\",\n  output: {\n    file: \"static/polypong.js\",\n    format: \"umd\",\n    name: \"polypong\",\n    sourcemap: true,\n  },\n  plugins: [\n    lightningcss({\n      files: [\"src/polypong.css\"],\n      options: {\n        sourceMap: true,\n      },\n    })\n  ]\n}\n```\n\n## Limitations\n\nBoth CSS files and their maps are packaged into the bundle produced when Rollup processes another genuine JS file (the entrypoint). As such, their output destination is not currently configurable and all CSS files will be placed at the same level of the output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthearchitector%2Frollup-plugin-lightningcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthearchitector%2Frollup-plugin-lightningcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthearchitector%2Frollup-plugin-lightningcss/lists"}