{"id":16747571,"url":"https://github.com/differui/rollup-plugin-scoped","last_synced_at":"2025-07-03T08:33:25.957Z","repository":{"id":65472214,"uuid":"56430536","full_name":"differui/rollup-plugin-scoped","owner":"differui","description":"Roll and create scoped style and template.","archived":false,"fork":false,"pushed_at":"2016-04-21T06:08:54.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T12:38:56.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/differui.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":"2016-04-17T10:20:23.000Z","updated_at":"2016-04-17T10:56:51.000Z","dependencies_parsed_at":"2023-01-25T01:45:17.490Z","dependency_job_id":null,"html_url":"https://github.com/differui/rollup-plugin-scoped","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/differui%2Frollup-plugin-scoped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Frollup-plugin-scoped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Frollup-plugin-scoped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Frollup-plugin-scoped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/differui","download_url":"https://codeload.github.com/differui/rollup-plugin-scoped/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814979,"owners_count":20352077,"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-13T02:10:26.305Z","updated_at":"2025-03-16T02:24:27.368Z","avatar_url":"https://github.com/differui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"rollup-plugin-scoped\n=====\n\nConvert template and style to ES6 modules:\n\n```js\nimport style form './btn.scss';\nimport template form './btn.tpl';\n\nconsole.log(style);\nconsole.log(template);\n```\n\nCreate scoped template and style:\n\n```js\nimport style form 'scoped!./btn.scss';\nimport template form 'scoped!./btn.tpl';\n\nconsole.log(style);\nconsole.log(template);\n```\n\n## Build-in extensions\n\n+ style: `*.css` `*.sass` `*.scss` `*.less` `*.styl`\n+ template: `*.tpl` `*.html` `*.jade`\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-scoped\n```\n\n## Usage\n\n```js\nimport { rollup } from 'rollup';\nimport scoped from 'rollup-plugin-scoped';\n\nrollup({\n    entry: 'app.js',\n    plugins: [\n        scoped()\n    ]\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Frollup-plugin-scoped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifferui%2Frollup-plugin-scoped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Frollup-plugin-scoped/lists"}