Hello! I am quite new to Solidus and rails in gene...
# support
z
Hello! I am quite new to Solidus and rails in general. I am trying to include a file to allow me to use custom javascript. I have commented out the
<%= javascript_include_tag 'solidus_starter_frontend' %>
and replaced it with
<%= javascript_include_tag 'spree/frontend/all.js' %>
. I have also added `//= link_tree ../../../vendor/assets/javascripts/spree/frontend`to my manifest.js file. Still not sure that it is working as expected. Am I on the right track here? Would appreciate if someone could point me in the right direction or link me to a useful resource. Thanks!
n
you can always add
console.log('loaded')
to the files you are trying to import to make sure it’s working
z
Thanks Paolo, managed to get it working by adding the individual JS files to each view, still haven't managed to add to application view but I gather this is suboptimal performance wise anyway
👍 1