Brunch automatically concatenates all files in your watched paths. Those paths can be configured atconfig.paths.watched in “brunch-config.js”.
However, those files will only be executed if explicitly imported. The only exception are files in vendor, which are never wrapped in imports and therefore are always executed.
But in my case, it seems not working(for example simple collapse function in bootstrap). So I imported in app.js
then it works…
So Do I have to import all js library into app.js?
If there is any documentation for app.js in phoenix, please let me know