{"id":16601797,"url":"https://github.com/biyuqi/vue-multiple-pages","last_synced_at":"2025-03-21T13:32:48.773Z","repository":{"id":39008342,"uuid":"127226588","full_name":"BiYuqi/vue-multiple-pages","owner":"BiYuqi","description":"多页面vue项目，支持打包后每个页面也单独文件夹(具体请看README)","archived":false,"fork":false,"pushed_at":"2022-12-13T22:54:09.000Z","size":2547,"stargazers_count":11,"open_issues_count":19,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T06:51:15.509Z","etag":null,"topics":["vue","vue-cli4","vue-multi-page","vue-multi-pages","vue-multipage","vue2"],"latest_commit_sha":null,"homepage":"https://biyuqi.github.io/vue-multiple-pages/","language":"Vue","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/BiYuqi.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":"2018-03-29T02:37:07.000Z","updated_at":"2024-09-06T04:04:37.000Z","dependencies_parsed_at":"2022-09-19T15:54:26.219Z","dependency_job_id":null,"html_url":"https://github.com/BiYuqi/vue-multiple-pages","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fvue-multiple-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fvue-multiple-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fvue-multiple-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fvue-multiple-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BiYuqi","download_url":"https://codeload.github.com/BiYuqi/vue-multiple-pages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141580,"owners_count":20404835,"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":["vue","vue-cli4","vue-multi-page","vue-multi-pages","vue-multipage","vue2"],"created_at":"2024-10-12T00:19:19.256Z","updated_at":"2025-03-21T13:32:48.471Z","avatar_url":"https://github.com/BiYuqi.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eVue Multiple Pages 👋\u003c/h1\u003e\n\n\u003e [Vue多页面](https://github.com/BiYuqi/vue-multiple-pages)配置实例\n\n[打包后按页面输出](https://github.com/BiYuqi/vue-multiple-pages/tree/support-build-nest-folder)\n\n## Mutiple Setting\n```js\nconst path = require('path')\nconst glob = require('glob')\n\nconst generateEntries = () =\u003e {\n  // 默认查询多页面地址\n  const PATH_ENTRY = path.resolve(__dirname, './src/pages')\n  // 约定构建出的页面用folder名字，默认入口为每个页面的main.js\n  const entryFilePaths = glob.sync(PATH_ENTRY + '/**/main.js')\n  const entry = {}\n  \n  entryFilePaths.forEach((filePath) =\u003e {\n    const filename = filePath.match(/([^/]+)\\/main\\.js$/)[1]\n    entry[filename] = {\n      entry: filePath,\n      template: 'public/index.html',\n      filename: `${filename}.html`,\n      // title可不传，每个页面单独设置\n      title: `${filename} Page`,\n      chunks: ['chunk-vendors', 'chunk-common', filename]\n    }\n  })\n\n  return entry\n}\n\nmodule.exports = {\n  generateEntries\n}\n```\n\n## Usage\n\n``` bash\ngit clone https://github.com/BiYuqi/vue-multiple-pages.git\n\ncd vue-multiple-pages\n\nyarn install\n\nyarn run serve\n\nyarn run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiyuqi%2Fvue-multiple-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiyuqi%2Fvue-multiple-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiyuqi%2Fvue-multiple-pages/lists"}