I need to insert a JS in one single page in my site. I placed it in
assets/js/myscript.js. In the body of the page I added:
However, I always get a 404 Phoenix.Router.NoRouteError. Sure enough I cannot see myscript.js inside priv/static/js.
Could any one please tell me in plain English what is it that phoenix expects us to do in order to use a js function? Is it something that I have to do in webpack.config.js. My apologies in advance but I am not an experience Web developer, this is literally my first Web Site so I am surely not familiar with a lot of details.