live-codes / live-codes/livecodes
Feature: Fully offline export
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 267
- Avg merge
- 9h 40m
- Merged PRs (30d)
- 16
Description
### 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
- [X] I agree to follow this project's Code of Conduct
### Contributing Docs
- [X] I agree to follow this project's Contribution Docs
Contributor guide
Assessment
This issue has not been assessed yet.