{"id":15511622,"url":"https://github.com/fangkyi03/spack-new","last_synced_at":"2025-09-08T19:38:56.934Z","repository":{"id":113361852,"uuid":"306743091","full_name":"fangkyi03/spack-new","owner":"fangkyi03","description":"毫秒级热更新 毫秒级编译","archived":false,"fork":false,"pushed_at":"2023-08-26T06:40:26.000Z","size":282,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"vue","last_synced_at":"2025-04-10T12:40:56.467Z","etag":null,"topics":["react","snowpack","vue","webpack"],"latest_commit_sha":null,"homepage":"","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/fangkyi03.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":"2020-10-23T20:43:37.000Z","updated_at":"2022-10-09T11:52:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"97a2e437-6417-4836-b929-18d230de174f","html_url":"https://github.com/fangkyi03/spack-new","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fangkyi03/spack-new","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangkyi03%2Fspack-new","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangkyi03%2Fspack-new/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangkyi03%2Fspack-new/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangkyi03%2Fspack-new/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fangkyi03","download_url":"https://codeload.github.com/fangkyi03/spack-new/tar.gz/refs/heads/vue","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangkyi03%2Fspack-new/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231436,"owners_count":25245585,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react","snowpack","vue","webpack"],"created_at":"2024-10-02T09:53:08.912Z","updated_at":"2025-09-08T19:38:56.862Z","avatar_url":"https://github.com/fangkyi03.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# 介绍\n只为追求极限的打包性能 毫秒级热更新 毫秒级启动 毫秒级编译是最终目标\n不过因为追求极限性能 所以在代码编写过程中 有部分是需要你进行人工规避的\n\n比如\n```javascript\n// 这里的moment全部按照你引入的包文件而来 所以你前面写的import moment是没有意义的\n// 其实可以简化为 import 'moment' 带来的效果是一样的\nimport moment from 'moment'\n// 另一个地方在于 如果你访问的文件夹是Index那么你的js文件中export default必须跟文件夹同名 大小写要一致\n// 否则会找不到文件\nexport default function Index() {\n  return (\n    \u003cInput placeholder='测试'\u003e\u003c/Input\u003e\n  )\n}\n\n```\n\n# config.js\n这个文件类似于webpack的配置文件 里面是这个框架的初始化环境 目前参数不多 后续会添加\n其中有一个需要注意的地\n```javascript\n  depend:{\n    'antd':{\n      'js':'https://cdn.bootcdn.net/ajax/libs/antd/4.7.0/antd.min.js',\n      'css':'https://cdn.bootcdn.net/ajax/libs/antd/4.7.0/antd.min.css'\n    },\n    'dayjs':'https://cdn.bootcdn.net/ajax/libs/dayjs/1.4.1/dayjs.min.js',\n    'moment':'https://cdn.bootcdn.net/ajax/libs/moment.js/1.0.0/moment.min.js'\n  }\n  这里有两种不同的写法 直接写字符串的话 默认只能加载js文件 \n  如果是又有js又有css的话 请使用上面那种\n```\n\n# 打包性能\n可以执行 npm run test \u0026\u0026 npm run build\n1000个页面 + 1000个组件\n优化以后20秒\n\n# 使用说明\n```javascript\n  // 启动\n  npm run dev\n  // 编译\n  npm run build\n  // 生成1000个page + 1000个components用来测试打包性能\n  npm run test \u0026\u0026 npm run build\n```\n\n# vue介绍\n目前vue支持render跟template两种写法 可以看对应的pages目录下的文件","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffangkyi03%2Fspack-new","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffangkyi03%2Fspack-new","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffangkyi03%2Fspack-new/lists"}