{"id":18358790,"url":"https://github.com/uppercod/vite","last_synced_at":"2026-01-12T05:11:40.430Z","repository":{"id":113251551,"uuid":"365422331","full_name":"UpperCod/vite","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-24T04:14:32.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T14:47:56.334Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UpperCod.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-08T04:56:55.000Z","updated_at":"2022-06-15T10:41:58.000Z","dependencies_parsed_at":"2023-07-21T21:21:53.039Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/vite","commit_stats":null,"previous_names":["uppercod/vite-plugins"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fvite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fvite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fvite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fvite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/vite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675631,"owners_count":20977376,"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-11-05T22:19:25.715Z","updated_at":"2026-01-12T05:11:35.403Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @uppercod/vite-\\*\n\nmonorepo of plugins created by @uppercod for vite:\n\n### [@uppercod/vite-meta-url](./packages/vite-meta-url/README.md)\n\nreplace imports of imported js files within vite, by URL based imports or inline content\n\n```js\nimport pluginMetaUrl from \"@uppercod/vite-meta-url\";\n\nexport default {\n    build: {\n        target: \"esnext\",\n    },\n    plugins: [\n        pluginFileUrl({\n            /**\n             * replace the import with a text string based on the return\n             * @param {string}\n             * @returns {string|Promise\u003cstring\u003e}\n             */\n            css: async (file) =\u003e {\n                return { inline: `.button{color:red;}` };\n            },\n            /**\n             * @param {string}  file\n             * @returns {string|Promise\u003cstring\u003e}\n             */\n            svg: async (file) =\u003e {\n                /**any asynchronous optimization of the content**/\n                return `\u003csvg\u003e...\u003c/svg\u003e`;\n            },\n        }),\n    ],\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fvite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fvite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fvite/lists"}