{"id":17142575,"url":"https://github.com/mario34/vite-multi-h5","last_synced_at":"2025-06-23T03:39:46.536Z","repository":{"id":124775229,"uuid":"376885305","full_name":"Mario34/vite-multi-h5","owner":"Mario34","description":"📱 基于vite的多页面h5框架","archived":false,"fork":false,"pushed_at":"2021-06-18T09:45:16.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T14:36:12.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Mario34.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-06-14T16:17:14.000Z","updated_at":"2023-11-29T12:02:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9969df39-bd8c-48f8-8b02-296b0f2f0d9d","html_url":"https://github.com/Mario34/vite-multi-h5","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/Mario34%2Fvite-multi-h5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario34%2Fvite-multi-h5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario34%2Fvite-multi-h5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario34%2Fvite-multi-h5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mario34","download_url":"https://codeload.github.com/Mario34/vite-multi-h5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245240926,"owners_count":20583102,"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-14T20:31:51.699Z","updated_at":"2025-03-24T09:12:38.013Z","avatar_url":"https://github.com/Mario34.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-multi-h5\n\n## 快速开始\n\n```bash\n# 启动开发服务\nyarn dev\n```\n\n项目启动后，`pages/` 目录下的能够被规则匹配的文件都将会被作为入口\n\n```text\n- pages\n  - project-a\n      index.html\n      main.ts\n  - project-b\n      index.html\n      main.ts\n```\n\n项目访问地址与他们的目录结构保持一致，`project-a/index.html` =\u003e `host:port/pages/project-a/index.html`，默认最大递归深度为5(⚠️ 超出深度的入口在build会被忽略，尽管开发环境仍然能够访问)\n\n---\n## 以下是基础模版的开发指引\n\nThis template should help get you started developing with Vue 3 and Typescript in Vite.\n\n### Recommended IDE Setup\n\n[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings!\n\n#### If Using `\u003cscript setup\u003e`\n\n[`\u003cscript setup\u003e`](https://github.com/vuejs/rfcs/pull/227) is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) instead of Vetur (and disable Vetur).\n\n### Type Support For `.vue` Imports in TS\n\nSince TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can use the following:\n\n#### If Using Volar\n\nRun `Volar: Switch TS Plugin on/off` from VSCode command palette.\n\n#### If Using Vetur\n\n1. Install and add `@vuedx/typescript-plugin-vue` to the [plugins section](https://www.typescriptlang.org/tsconfig#plugins) in `tsconfig.json`\n2. Delete `src/shims-vue.d.ts` as it is no longer needed to provide module info to Typescript\n3. Open `src/main.ts` in VSCode\n4. Open the VSCode command palette\n5. Search and run \"Select TypeScript version\" -\u003e \"Use workspace version\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario34%2Fvite-multi-h5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmario34%2Fvite-multi-h5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario34%2Fvite-multi-h5/lists"}