I am building a new app, with phoenix and semantic-ui. For a modal popup, i loaded a form on ajax with layout false in controller, modal is opening fine with the expected content but the semantic-ui js functions are not working. how to resolve this. do i need to load semantic js in webpack.config.js? I use minified version and i have placed semantic-ui.js in vendor folder.
Easiest would be to put your semantic-ui.js file inside /assets/static/* folder. Then Webpack would copy the file over to /priv/static/* without touching the file.
Don’t forget to add the html script tag referencing the file. (also, don’t forget to load jQuery before it if Semantic still requires it)