Scott-Devine / MELT-LRA

MELT-LRA: Mobile Element Insertion Site Classifier
Other
0 stars 0 forks source link

See if UI can be run without a web server #25

Closed jonathancrabtree closed 11 months ago

jonathancrabtree commented 1 year ago

Any way to get the Vite app to run directly off files without using a web server? Would simplify e-mailing results around.

jonathancrabtree commented 11 months ago

Done. We're using vite-plugin-singlefile to add an inlined-build option which packages the entire app into a single index.html file. A new script, ui/bin/inline_data.py, packages a directory of CSV files into a single JS source file, using gzip and base64 encoding to create (large) string literals for each file.