{"id":21989026,"url":"https://github.com/imweb/fis3-deploy-offpack","last_synced_at":"2025-03-23T03:15:25.582Z","repository":{"id":57237206,"uuid":"42097673","full_name":"imweb/fis3-deploy-offpack","owner":"imweb","description":"fis3 offline package","archived":false,"fork":false,"pushed_at":"2015-12-01T07:03:33.000Z","size":1255,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T14:50:05.632Z","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/imweb.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":"2015-09-08T07:44:33.000Z","updated_at":"2015-12-01T07:03:20.000Z","dependencies_parsed_at":"2022-08-26T15:10:27.446Z","dependency_job_id":null,"html_url":"https://github.com/imweb/fis3-deploy-offpack","commit_stats":null,"previous_names":["haledeng/fis3-deploy-offpack"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-deploy-offpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-deploy-offpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-deploy-offpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-deploy-offpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imweb","download_url":"https://codeload.github.com/imweb/fis3-deploy-offpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048281,"owners_count":20552483,"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-29T19:27:24.410Z","updated_at":"2025-03-23T03:15:25.556Z","avatar_url":"https://github.com/imweb.png","language":"JavaScript","readme":"### 项目生成离线包\n\n将项目产出成离线包，http路径变成了本地的文件路径。\n\n打包使用的http路劲是 fis-conf.js 中配置的domain。\n```\n\nfis.match('**.js', {\n    domain: 'http:://9.url.cn/edu'\n}).match('**.css', {\n    domain: 'http:://8.url.cn/edu'\n}).match('::image', {\n    domain: 'http:://7.url.cn/edu'\n}).match('**.html', {\n    domain: 'http:://ke.qq.com/mobilev2'\n});\n\nfis.plugin('offpack', {\n    // 产出目录\n    to: '../pack',\n    zipTo: '../publish/offline', // zip文件单独copy到这里\n    // glob表达式，自定义需要打包的文件，如果不填，默认打包全部文件\n    packSrc: [\n        '/*.html',\n        '**.{css,scss}',\n        '**.{png,gif,jpg}',\n        'pkg/**.js'\n    ]\n})\n```\n\n最终html最产出到ke.qq.com/mobilev2下对于的目录，整个产出会打成pack.zip压缩包。\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis3-deploy-offpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimweb%2Ffis3-deploy-offpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis3-deploy-offpack/lists"}