{"id":14989126,"url":"https://github.com/ywzhaiqi/rollup-plugin-userscript-css","last_synced_at":"2026-01-03T23:50:46.192Z","repository":{"id":57148094,"uuid":"101508047","full_name":"ywzhaiqi/rollup-plugin-userscript-css","owner":"ywzhaiqi","description":"import css file for userscirpt","archived":false,"fork":false,"pushed_at":"2017-08-31T09:18:47.000Z","size":7,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-27T18:02:54.405Z","etag":null,"topics":["rollup","rollup-plugin","userscript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ywzhaiqi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-26T19:22:08.000Z","updated_at":"2018-12-26T11:02:18.000Z","dependencies_parsed_at":"2022-09-06T19:30:23.546Z","dependency_job_id":null,"html_url":"https://github.com/ywzhaiqi/rollup-plugin-userscript-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywzhaiqi%2Frollup-plugin-userscript-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywzhaiqi%2Frollup-plugin-userscript-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywzhaiqi%2Frollup-plugin-userscript-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ywzhaiqi%2Frollup-plugin-userscript-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ywzhaiqi","download_url":"https://codeload.github.com/ywzhaiqi/rollup-plugin-userscript-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868753,"owners_count":20523591,"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":["rollup","rollup-plugin","userscript"],"created_at":"2024-09-24T14:17:44.213Z","updated_at":"2026-01-03T23:50:46.159Z","avatar_url":"https://github.com/ywzhaiqi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rollup UserScript Css Plugin\r\n============================\r\n\r\nThis [Rollup](http://rollupjs.org/) plugin will import css file for Greasemonkey / Tampermonkey.\r\n\r\n## Install\r\n\r\n```\r\nnpm install --save rollup-plugin-userscript-css\r\n```\r\n\r\n## usage\r\n\r\n```js\r\nimport './test.css'\r\n```\r\n\r\n`rollup.config.js`\r\n\r\n```js\r\nimport userScriptCss from 'rollup-plugin-userscript-css'\r\n\r\nexport default {\r\n  ...\r\n  plugins: [\r\n    userScriptCss()\r\n  ]\r\n}\r\n```\r\n\r\n## Options\r\n\r\n### insert\r\n\r\n+ Default: `true`\r\n+ Type: `Boolean`\r\n\r\nDefault `true`, the plugin will insert CSS into `\u003chead/\u003e` tag.\r\n\r\n### include\r\n\r\n+ Default: `[ '**/*.css' ]`\r\n\r\n+ Type: `String|Array`\r\n\r\nMinimatch pattern or array of minimatch patterns to determine which files are transpiled by the plugin.\r\n\r\n### exclude\r\n\r\n+ Default: `node_modules/**`\r\n\r\n+ Type: `String|Array`\r\n\r\nMinimatch pattern or array of minimatch patterns to determine which files are explicitly not transpiled by the plugin, overrules the `include` option.\r\n\r\n## References\r\n\r\n- [index.js at master · xiaofuzi/rollup-plugin-less](https://github.com/xiaofuzi/rollup-plugin-less/blob/master/src/index.js)\r\n- [Plugins · rollup/rollup Wiki](https://github.com/rollup/rollup/wiki/Plugins)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fywzhaiqi%2Frollup-plugin-userscript-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fywzhaiqi%2Frollup-plugin-userscript-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fywzhaiqi%2Frollup-plugin-userscript-css/lists"}