How do I include a plain old JS file without any exports or modern shebangs inside my resulting
app.js? The file is just a collection of JS functions.
Just started a Phoenix 1.5.1 project, tried putting the file in
assets/static/ seeing as Webpack has a rule for it (but I might misunderstand it) and then tried calling one of the functions from the dev console, but they are not found (and searching inside the generated
app.js doesn’t show them either). Also tried putting the vile in
vendor/js/ and still no go.
What’s a quick and efficient way to do this?
Disclaimer: I really am not looking to become a webpack expert. The project will not mandate it, I am just stumbling at the first few basic steps (or I thought they were basic).