develancer / topola-webpack

Simple genealogy viewer based on https://github.com/PeWu/topola
Apache License 2.0
8 stars 2 forks source link

Bundle into one HTML file #1

Closed PeWu closed 5 months ago

PeWu commented 4 years ago

Nice work! It makes it much easier to deploy and share a self-contained interactive family tree.

Do you think it would be possible to bundle everything into one big HTML file? This way, you could just send someone a single file and they would be able to see the interactive chart.

develancer commented 4 years ago

Good idea! I haven't consider it initially, as I didn't want to prevent the browser from caching the JS file. However, in the end it does not matter whether the server will return 304 Not Modified for the JS file or for the all-in-one HTML file.

I think I'll be able to accomplish this with html-webpack-plugin and html-webpack-inline-source-plugin.

redstreet commented 2 years ago

This would be a "nice to have" for me too. I use staticrypt, which only works on a single html file. It's easy to get around by cat'ing main.js into index.html, so it's not a biggie.

Great project, thank you!

develancer commented 2 years ago

Certainly will do. Cannot commit on any timeframe, though.

redstreet commented 2 years ago

Of course, this is just a nice to have, and is very low priority IMHO.

develancer commented 5 months ago

It took me some time to find a slot for it, but here it is. The current version (master) generates a single HTML file.