How to include view based js files in Phoenix

How to include custom js files from within a tempalate eex file, by- passing all that brunch/compiled/module system.

Just include it via a normal html script tag then, nothing special there. ^.^

If you want to host it locally just drop it in your priv/static somewhere and make sure the endpoint is set to host it.

1 Like

Simple is best, I will just do it using Nginx as a static files server. Since, all that brunch thing seems too complicated.

1 Like