{"id":15683625,"url":"https://github.com/tjx666/vscode-webview-webpack-hmr-example","last_synced_at":"2025-07-14T17:09:32.830Z","repository":{"id":97561171,"uuid":"471486317","full_name":"tjx666/vscode-webview-webpack-hmr-example","owner":"tjx666","description":"VSCode Extension Webview Powered by Webpack HMR","archived":false,"fork":false,"pushed_at":"2022-03-22T18:32:07.000Z","size":1309,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T13:03:52.505Z","etag":null,"topics":["hmr","vscode","vscode-extension","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/tjx666.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-03-18T19:06:03.000Z","updated_at":"2025-05-06T06:48:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"330a275d-71fc-472e-b486-29be95adb043","html_url":"https://github.com/tjx666/vscode-webview-webpack-hmr-example","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"31c623d415312423909afb23677247eeb30697da"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjx666/vscode-webview-webpack-hmr-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fvscode-webview-webpack-hmr-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fvscode-webview-webpack-hmr-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fvscode-webview-webpack-hmr-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fvscode-webview-webpack-hmr-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjx666","download_url":"https://codeload.github.com/tjx666/vscode-webview-webpack-hmr-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fvscode-webview-webpack-hmr-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265322376,"owners_count":23746607,"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":["hmr","vscode","vscode-extension","webpack"],"created_at":"2024-10-03T17:07:49.906Z","updated_at":"2025-07-14T17:09:32.754Z","avatar_url":"https://github.com/tjx666.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 本地运行\n\n1. 克隆项目：`git clone git@github.com:tjx666/vscode-webview-webpack-hmr-example.git`\n2. 安装依赖：`npm install`\n3. 打开 VSCode debug 面板，点击 `Run Extension` \n4. 在**扩展开发窗口**通过快捷键 `cmd + shift + p` 打开命令面板，调用命令: `Open Webview For Test Webpack HMR` 打开用于测试的 Webview\n\n注意：需要安装 VSCode 扩展 [amodio.tsl-problem-matcher](https://marketplace.visualstudio.com/items?itemName=amodio.tsl-problem-matcher)，不然 VSCode 识别不了 webpack 什么时候打包结束\n\n## 运行效果\n\n![成功运行](https://github.com/tjx666/blog/blob/main/images/VSCodeWebview%E5%AE%8C%E7%BE%8E%E9%9B%86%E6%88%90Webpack%E7%83%AD%E6%9B%B4%E6%96%B0/%E4%B8%8D%E7%AE%97%E5%AE%8C%E7%BE%8E.gif?raw=true)\n\n博客阅读地址：\n\n- [知乎 - VSCode Webview 完美集成 Webpack 热更新](https://zhuanlan.zhihu.com/p/483842887)\n- [掘金 - VSCode Webview 完美集成 Webpack 热更新](https://juejin.cn/post/7076763654661603342)\n\n如果对你有用，希望能动动你的小手给这个项目点个 ⭐️，给博客点个 👍🏻。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Fvscode-webview-webpack-hmr-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjx666%2Fvscode-webview-webpack-hmr-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Fvscode-webview-webpack-hmr-example/lists"}