{"id":15317482,"url":"https://github.com/vite-plugin/vite-plugin-multiple","last_synced_at":"2025-04-30T14:30:15.063Z","repository":{"id":65350018,"uuid":"589393786","full_name":"vite-plugin/vite-plugin-multiple","owner":"vite-plugin","description":"Allow multiple Vite to run simultaneously.","archived":false,"fork":false,"pushed_at":"2024-03-25T19:09:24.000Z","size":13,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-19T04:41:21.598Z","etag":null,"topics":["config","multiple","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","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/vite-plugin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-01-16T01:54:57.000Z","updated_at":"2025-04-03T15:28:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"410785e0-624c-4ace-95c4-fa78b2237717","html_url":"https://github.com/vite-plugin/vite-plugin-multiple","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-plugin%2Fvite-plugin-multiple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-plugin%2Fvite-plugin-multiple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-plugin%2Fvite-plugin-multiple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vite-plugin%2Fvite-plugin-multiple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vite-plugin","download_url":"https://codeload.github.com/vite-plugin/vite-plugin-multiple/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251721364,"owners_count":21632825,"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":["config","multiple","vite","vite-plugin"],"created_at":"2024-10-01T08:57:10.375Z","updated_at":"2025-04-30T14:30:15.031Z","avatar_url":"https://github.com/vite-plugin.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"# vite-plugin-multiple\n\nAllow multiple Vite to run simultaneously.\n\n[![NPM version](https://img.shields.io/npm/v/vite-plugin-multiple.svg)](https://npmjs.com/package/vite-plugin-multiple)\n[![NPM Downloads](https://img.shields.io/npm/dm/vite-plugin-multiple.svg)](https://npmjs.com/package/vite-plugin-multiple)\n\n## Install\n\n```sh\nnpm i -D vite-plugin-multiple\n```\n\n## Usage\n\n```js\nimport multiple from 'vite-plugin-multiple'\n\nexport default {\n  plugins: [\n    multiple([\n      {\n        name: 'foo',\n        config: 'vite.foo.config.mjs',\n      },\n      {\n        name: 'bar',\n        config: 'vite.bar.config.mjs',\n      },\n    ]),\n  ],\n}\n```\n\n**`vite serve`**\n\n- `http://localhost:5173` access to the **main** app\n- `http://localhost:5174` access to the **foo** app\n- `http://localhost:5175` access to the **bar** app\n\n**`vite build`**\n\n- `dist` **main** app\n- `dist/foo` **foo** app\n- `dist/bar` **bar** app\n\n## API \u003csub\u003e\u003csup\u003e(Define)\u003c/sup\u003e\u003c/sub\u003e\n\n```ts\nmultiple(\n  apps: {\n    /**\n     * Human friendly name of your entry point.\n     */\n    name: string\n    /**\n     * Vite config file path.\n     */\n    config: string\n    /**\n     * Explicitly specify the run command.\n     */\n    command?: 'build' | 'serve'\n  }[],\n  options: {\n    /**\n     * Called when all builds are complete.\n     */\n    callback?: () =\u003e void,\n  } = {},\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-plugin%2Fvite-plugin-multiple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvite-plugin%2Fvite-plugin-multiple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvite-plugin%2Fvite-plugin-multiple/lists"}