{"id":17968530,"url":"https://github.com/hyrious/esbuild-plugin-style","last_synced_at":"2025-03-25T10:32:17.247Z","repository":{"id":45480515,"uuid":"366045533","full_name":"hyrious/esbuild-plugin-style","owner":"hyrious","description":"The style-loader for esbuild.","archived":false,"fork":false,"pushed_at":"2022-03-21T01:53:06.000Z","size":57,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T03:41:36.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hyrious.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T13:06:16.000Z","updated_at":"2024-09-29T11:01:11.000Z","dependencies_parsed_at":"2022-07-15T03:46:56.177Z","dependency_job_id":null,"html_url":"https://github.com/hyrious/esbuild-plugin-style","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fesbuild-plugin-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fesbuild-plugin-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fesbuild-plugin-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyrious%2Fesbuild-plugin-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyrious","download_url":"https://codeload.github.com/hyrious/esbuild-plugin-style/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245444239,"owners_count":20616345,"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-29T14:40:36.352Z","updated_at":"2025-03-25T10:32:16.356Z","avatar_url":"https://github.com/hyrious.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @hyrious/esbuild-plugin-style\n\nThe missing style-loader for esbuild.\n\n## Usage\n\n```js\nconst { style } = require(\"@hyrious/esbuild-plugin-style\");\n\nrequire(\"esbuild\").build({\n  entryPoints: [\"app.js\"],\n  bundle: true,\n  outfile: \"out.js\",\n  plugins: [style()],\n}).catch(() =\u003e process.exit(1));\n```\n\nGiven such app.js and style.css:\n\n```js\nimport \"./style.css\";\nconsole.log(1);\n```\n\n```css\nbody { color: red; }\n```\n\nOutputs (things like):\n\n```js\nlet style = document.createElement(\"style\");\nstyle.append(\"body { color: red }\");\ndocument.head.append(style);\nconsole.log(1);\n```\n\n### Options\n\n```ts\nexport function style({ minify = true, charset = \"utf8\" }): Plugin;\n```\n\n## License\n\nMIT @ [hyrious](https://github.com/hyrious)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyrious%2Fesbuild-plugin-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyrious%2Fesbuild-plugin-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyrious%2Fesbuild-plugin-style/lists"}