shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
RollACaster 2020-11-29T11:03:07.299600Z

Hi, is there any common practice to include the hashes from https://shadow-cljs.github.io/docs/UsersGuide.html#NameHashing into the index.html file? The User Guide states: > The https://shadow-cljs.github.io/docs/UsersGuide.html#BrowserManifest can help with that. How is the Output Manifest commonly used to do this task?

thheller 2020-11-29T11:46:51.300Z

if you just have a static html file you can use this https://github.com/thheller/shadow-cljs/blob/16727382e683bb9449a07068158e01f9f16827ea/shadow-cljs.edn#L146-L149

thheller 2020-11-29T11:47:39.301Z

copies the index.src.html and modifies the <script src="/js/main.js"> (or whatever your modules and paths are)

RollACaster 2020-11-29T11:54:53.301300Z

ah perfect, thanks!