Hi everyone!
I expect everyone is going fine those days!
I’m writing to get some opnion around an issue I’m facing and I think others will fall into also!
The new asset bundling, is really great due the performance, and the fact it support other frameworks like vue, react and svelte make’s it fantastic!
But, nothing are flowers!
Since the structure of the css generated always include a hash, as documented here , there’s no easy way to get the bundled file from external applications.
For example, I’m changing the code of the frappe-chat for the chat bubble become embeddable!
It was supposed to be a trivial task, since the unique thing I need to get is an JavaScript and a CSS file!
But, since the bundled file names aren’t predictable anymore due the hash, I had to create an whitelisted api, that reads the assets.json
and returns the filenames I’m looking for!
After that I can start building my application!
On my overview, the need to make a request call to get the file names, then to load the files, makes no sense, but IMHO, may I’m wrong!
I dont know if someone have other ideas? I was thinking in change the bundle process, for it create symlinks under the /assets/css
and /assets/js
with the bundle name without the hash!