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
Now i have been using haml_coffee_assets for a while now, maybe a slightly older version.
haml_coffee_assets (1.11.1, 1.11.0)
I use asset_sync, compiles great, i precompile and i have assets folder with files that have the ['hamlcoffee_amd'] injected. Great.
Now under the javscripts folder, until now i had just one backbone app, and everything still works great on that app.
javascripts/backbone
I just created two new apps under
javascripts/mobile
javascripts/setup
Pretty much a replica of the first backbone app structure, now when i pre compile, i still see hamlcoffee amd injected in assets folder for those new apps, but when in production i get hamlcoffee_amd.js not found.
Any ideas why?
Thanks for reading!
The text was updated successfully, but these errors were encountered:
So i got it working, but i am still fuzzy on why it did not work, also, its not an optimal solution. In the requirejs.yml, while compiling the top level module (as in the first backbone app uses 'application'), but new backbone apps use different names.
name: 'setupApp'
exclude: ['application', 'jquery', 'mobile']
When i comment out the exclude line, i.e, include application, it works, but it adds a whole bunch of js from application.js which i dont really need in setupApp, ideally i would want hamlc to get compiled without me having to include application.js, i.e so that i can uncomment out that exclude line.
So, back from holiday :( I'm sorry that this issue slipped under my radar, I usually try to give feedback on every issue, but I'm glad you made it work. I don't use RequireJS on any project and the code was contributed, but if you have any improvement, I'm glad to merge it.
This is the stack i have:
Now i have been using haml_coffee_assets for a while now, maybe a slightly older version.
haml_coffee_assets (1.11.1, 1.11.0)
I use asset_sync, compiles great, i precompile and i have assets folder with files that have the ['hamlcoffee_amd'] injected. Great.
Now under the javscripts folder, until now i had just one backbone app, and everything still works great on that app.
javascripts/backbone
I just created two new apps under
javascripts/mobile
javascripts/setup
Pretty much a replica of the first backbone app structure, now when i pre compile, i still see hamlcoffee amd injected in assets folder for those new apps, but when in production i get hamlcoffee_amd.js not found.
Any ideas why?
Thanks for reading!
The text was updated successfully, but these errors were encountered: