Let's say I want to combine a bunch of Javascript and Julius file. I do it like this:
jsWidget :: Widget
jsWidget = do
addScript $ StaticR js_test1_js
toWidget $(juliusFile "static/js/gis/sample.julius")
addScript $ StaticR js_test2_js
addScript $ StaticR js_test3_js
But the problem with the above approach is that Yesod takes all the Julius file in the widget and converts them to a single file (autogen-xxx.js) and appends it at the end. Although this is a good optimization, this breaks my JavaScript code. Is there a way to solve this problem ?