i want to add a custom theme and their asset but im a little bit confused about javascript how to add the theme js file and load in the project through importmap
Thanks
i want to add a custom theme and their asset but im a little bit confused about javascript how to add the theme js file and load in the project through importmap
Thanks
In principle you add JS using bin/importmap pin <library name>
, although you can also add things manually to your importmap.rb file.
https://github.com/rails/importmap-rails#using-npm-packages-via-javascript-cdns