You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that in the debug mode the loading order of the compiled coffeescripts are not specified and may cause error. In my case, the app.js is loaded after other javascript files which causes undefined module errors.
The text was updated successfully, but these errors were encountered:
@jimmy00784 This should work in debug mode, but I remember that in the product mode all of those scripts will be compiled into one script file (through uglify, digest, and gzip). Although we can modify the index.scala further to make correct includings which is what I do now, it looks not so neat. Does there exist better solution? Is require.js suitable in this situation? If so, would you give me a simple demo? (I am new to uglify, digest, gzip, requirejs, thank you so much for your reply.)
It seems that in the debug mode the loading order of the compiled coffeescripts are not specified and may cause error. In my case, the app.js is loaded after other javascript files which causes
undefined module
errors.The text was updated successfully, but these errors were encountered: