1

I am new to rails 7 and dont know where to put my custom js files. Now I know the importmaps are used to get third part javascript libraries via cdn's and we include in our application.js file. But suppose if I have my custom js files which are shared across multiple views, then in asset pipeline, I used to put them in app/assets/javascripts and if using webpacker, used to keep in app/javascript and then arrange accordingly with pack tags or include tags. But here using importmaps, where should I put these custom js files as importmaps are just for third party js libraries

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.