Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Json files #50

Open
mjsmagalhaes opened this issue Dec 30, 2022 · 0 comments
Open

Add support to Json files #50

mjsmagalhaes opened this issue Dec 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mjsmagalhaes
Copy link

Is your feature request related to a problem? Please describe.
JSON files are ignored by the building process.

Describe the solution you'd like.
To pack json files with HTML data (like tweego handles images, videos, captions ...)

Describe alternatives you've considered.
An alternative is to add the JSON file to a JS lib to import it or use a server to have the data download in execution time.

Additional context.
We have 3 solutions (that I can see) to solve JSON data availability: pack with html, pack with JS and download it during execution.

Serving data is best avoided because it requires some infrastructure and running a server during development.

Packing that with the JS isn't terrible but I believe we should avoid. The bundle may become large and js files will have to be downloaded again after each data update. It also requires either a building tool or a manual update. I am currently using this approach ... recompiling code after data update is a nuisance but solves it.

Packing with HTML is probably the best solution as it requires nothing extra from the author and keep the alternatives possible if anyone is interested.

@mjsmagalhaes mjsmagalhaes added the enhancement New feature or request label Dec 30, 2022
@mjsmagalhaes mjsmagalhaes changed the title Add support tot Json files Add support to Json files Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant