Feature: Fully offline export

未关闭
#443 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
html, javascript, typescript

调研方向

首先跟踪 HTML 和 JavaScript 导出路径,包括 headless mode 以及 import-map 或 CDN 依赖项的处理。明确“完成”是指单个自包含的 HTML 文件、包含本地复制依赖项的 HTML 文件,还是两者兼具,然后验证导出的结果在没有网络访问的情况下也能正常工作。

由索引模型根据 Issue 内容生成。

描述

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

When building for example html and JS and then exporting it, ideally (especially for headless mode in CI-like use) there'd be a way to also get an output with all dependencies bundled into the one HTML file or perhaps the file plus the external modules copied locally. This would also simplify the prefix: import map complexity when integrating this output into other projects or deployments/automation, by being able to "vendor" the full deployment rather than inherit the complexity of pulling modules in from various 3rd party CDNs.

One use case is to have github files that are available locally. JSDelivr is good for deployment, but for dev steps, it forces a long cache unless you contact them, unless you update URLs with specific hashes of files as you update them... there's no default way to just use "latest" / @main for repos. So it could be easier for some users to export html + dependencies as a directory to rehost, or optionally one big html file with dependencies baked-in. It could also be useful to switch back to JSDelivr for prod deployments, and local paths / local github repos during dev (which can be loaded in via parent contexts using the SDK also...) Thanks

Additional context

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Contributing Docs
  • I agree to follow this project's Contribution Docs
主要语言
TypeScript
星标
1.5k
派生
267
平均合并
7 小时 47 分钟
30 天内合并 PR
14

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

live-codes/livecodes 的其他 Issue

查看 live-codes/livecodes 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。