discuit
discuit copied to clipboard
A Different way of loading config information
Rather than rebuild the UI every time we update the config.yaml
, what if we had a path called say /config.json
that would be updated by the server itself, which then can be used by the UI, this would help save some time as it would not need to rebuild the UI. For reference Woodpecker CI does something similar for their UI.
Edit: It seems this may not be possible with the use of Webpack, But it's always worth a try
So from what I can see, the web-config.js
is just configuration for the user, and doesn't actually update the UI. It still needs to build the UI with Vite every time it's updated, which is what Discuit does as well.
This is because JSX files can't be built to JS without a builder, which is basically what Webpack is doing here.