Should there be a way to decode JSON values of Vite-processed assets in Elm, similar to flags? #338
dillonkearns
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
One thing I can imagine in the future is a way to let users pass in values from Vite to a Route Module so you can load values and have them pre-processed through Vite but access the resulting values in Elm. Something like
Then in a route module, you could do
Decode.field "myImage" Decode.stringto get a value that is pre-processed by Vite but accessible in your route when it's loaded. Just a rough idea at this point, I'm not sure if it's a good one yet. A few implications for it:Beta Was this translation helpful? Give feedback.
All reactions