{"id":13773913,"url":"https://github.com/thgh/rollup-plugin-css-only","last_synced_at":"2025-04-05T06:10:03.162Z","repository":{"id":11291112,"uuid":"68157789","full_name":"thgh/rollup-plugin-css-only","owner":"thgh","description":"Rollup plugin that bundles imported css","archived":false,"fork":false,"pushed_at":"2023-11-08T11:43:07.000Z","size":124,"stargazers_count":108,"open_issues_count":12,"forks_count":28,"subscribers_count":2,"default_branch":"v4","last_synced_at":"2024-05-23T10:01:24.305Z","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/thgh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-14T00:09:08.000Z","updated_at":"2024-04-10T12:41:44.000Z","dependencies_parsed_at":"2024-01-13T11:52:53.130Z","dependency_job_id":"ca9fcc89-eb47-41e9-8dc5-ad8bdaa9853e","html_url":"https://github.com/thgh/rollup-plugin-css-only","commit_stats":{"total_commits":74,"total_committers":16,"mean_commits":4.625,"dds":"0.32432432432432434","last_synced_commit":"8297b426ca114aea64ad1be6aa63cd828d4c09ba"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgh%2Frollup-plugin-css-only","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgh%2Frollup-plugin-css-only/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgh%2Frollup-plugin-css-only/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgh%2Frollup-plugin-css-only/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thgh","download_url":"https://codeload.github.com/thgh/rollup-plugin-css-only/tar.gz/refs/heads/v4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271515,"owners_count":20911587,"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-08-03T17:01:21.666Z","updated_at":"2025-04-05T06:10:03.100Z","avatar_url":"https://github.com/thgh.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["CSS"],"readme":"# Rollup plugin that bundles imported css\n\n\u003ca href=\"LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"Software License\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/thgh/rollup-plugin-css-only/issues\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/thgh/rollup-plugin-css-only.svg\" alt=\"Issues\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://standardjs.com/\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg\" alt=\"JavaScript Style Guide\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmjs.org/package/rollup-plugin-css-only\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/rollup-plugin-css-only.svg?style=flat-squar\" alt=\"NPM\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/thgh/rollup-plugin-css-only/releases\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/release/thgh/rollup-plugin-css-only.svg\" alt=\"Latest Version\" /\u003e\n\u003c/a\u003e\n\n## Features\n\n- CSS is emitted as 1 asset\n- Order of imports is guaranteed\n- Watches CSS imports\n- Typescript types\n\n## Installation\n\n```\n# v4 is compatible with Rollup 4 \u0026 3 \u0026 2\n# Rollup 4 since v4.4\nnpm install --save-dev rollup-plugin-css-only\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport css from 'rollup-plugin-css-only'\n\nexport default {\n  input: 'input.js',\n  output: {\n    file: 'output.js',\n    format: 'es',\n    assetFileNames: 'assets/[name]-[hash][extname]'\n  },\n  plugins: [css()]\n}\n```\n\n```js\n// entry.js\nimport './reset.css'\nimport './layout.css'\n```\n\n```css\n/* layout.css */\n@import './nested.css';\n@import './more.css';\n```\n\n### Options\n\nThere is 1 option: `output`.  \nBy default the plugin will use `output.assetFileNames` to decide the filename.\n\n```js\ncss({\n  // Optional: filename to write all styles to\n  output: 'bundle.css'\n})\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nContributions and feedback are very welcome.\n\nTo get it running:\n\n1. Clone the project.\n2. `npm install`\n3. `npm run build`\n\n## Credits\n\n- [Thomas Ghysels](https://github.com/thgh)\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[link-author]: https://github.com/thgh\n[link-contributors]: ../../contributors\n[rollup-plugin-vue]: https://www.npmjs.com/package/rollup-plugin-vue\n[rollup-plugin-buble]: https://www.npmjs.com/package/rollup-plugin-buble\n[rollup-plugin-babel]: https://www.npmjs.com/package/rollup-plugin-babel\n[vue-template-compiler]: https://www.npmjs.com/package/vue-template-compiler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgh%2Frollup-plugin-css-only","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthgh%2Frollup-plugin-css-only","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgh%2Frollup-plugin-css-only/lists"}