{"id":17087350,"url":"https://github.com/leecason/webpack-long-term-caching-demos","last_synced_at":"2026-04-29T11:02:29.572Z","repository":{"id":102619613,"uuid":"205075631","full_name":"Leecason/webpack-long-term-caching-demos","owner":"Leecason","description":"Webpack4 持久化缓存实践，10 个 demo","archived":false,"fork":false,"pushed_at":"2019-09-10T13:15:29.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T14:43:12.694Z","etag":null,"topics":["demo","long-term-cache","webpack","webpack-demo","webpack4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Leecason.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2019-08-29T03:49:07.000Z","updated_at":"2021-06-18T12:51:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"c92bcc40-ef25-440e-a10d-c1f050d42721","html_url":"https://github.com/Leecason/webpack-long-term-caching-demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Leecason/webpack-long-term-caching-demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fwebpack-long-term-caching-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fwebpack-long-term-caching-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fwebpack-long-term-caching-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fwebpack-long-term-caching-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leecason","download_url":"https://codeload.github.com/Leecason/webpack-long-term-caching-demos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leecason%2Fwebpack-long-term-caching-demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["demo","long-term-cache","webpack","webpack-demo","webpack4"],"created_at":"2024-10-14T13:32:45.521Z","updated_at":"2026-04-29T11:02:29.550Z","avatar_url":"https://github.com/Leecason.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-long-term-caching-demos\n\nThis repo is a collection of simple demos of Webpack for long-term caching.\n\nBefore you learn those demos, you need to know about Webpack.\n\n## How to use\n\nFirst, install `webpack` and `webpack-cli` globally.\n\n```zsh\n$ npm i -g webpack webpack-cli\n```\n\nThen, clone the repo.\n\n```zsh\n$ git clone https://github.com/Leecason/webpack-long-term-caching-demos.git\n```\n\nInstall dependencies.\n\n```zsh\n$ cd webpack-long-term-caching-demos\n$ npm install\n```\n\nNow, play with the source files under the repo's demo* directories.\n\n```zsh\n$ cd demo01\n$ npm run build\n```\n\n## Index\n\n1. [简单的 `hash`](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo01)\n1. [增加一个 vendors](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo02)\n1. [使用 `chunkhash`](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo03)\n1. [增加新模块](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo04)\n1. [稳定 `module id`](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo05)\n1. [增加 CSS 模块](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo06)\n1. [`contenthash`解决 CSS 模块修改后 JS 文件 `hash` 变动问题](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo07)\n1. [增加异步模块](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo08)\n1. [增加第二个入口文件](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo09)\n1. [稳定 `chunk id`](https://github.com/Leecason/webpack-long-term-caching-demos/tree/master/demo10)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleecason%2Fwebpack-long-term-caching-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleecason%2Fwebpack-long-term-caching-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleecason%2Fwebpack-long-term-caching-demos/lists"}