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
I am upgrading to sprockets 4 and I have some .js.erb files. I have read the extending sprockets guide a few times and I can't figure out how to make my files compile properly. I realize they have to be named .js now, but I don't know how to make the ERB code parse.
I am upgrading to sprockets 4 and I have some .js.erb files. I have read the extending sprockets guide a few times and I can't figure out how to make my files compile properly. I realize they have to be named .js now, but I don't know how to make the ERB code parse.
I have a file that starts like this:
I need these image paths in my javascript. How can I achieve this?
I have another file that has a condition of
Rails.env
in a .js.erb which I need as well.The readme has documentation for
depend_on
which looks like:Based on this, it must be possible?
Thanks in advance.
The text was updated successfully, but these errors were encountered: