[elm-discuss] Re: Rails integrations issues
You mean, the webpacker gem should create an example elm-app using the folderstructure I tried? On Saturday, 24 June 2017 13:41:51 UTC+2, Max Goldstein wrote: > > Assuming that works as described, you should think about sending a PR > upstream. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Rails integrations issues
Assuming that works as described, you should think about sending a PR upstream. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Rails integrations issues
Hi Peco, I recently ran into the same issue. What I did was create a seperate directory for my elm app inside app/javascript (next to the packs folder where the example Main.elm was inside) and only put the javascript file which initializes elm into the folder app/javascript/packs. You then need to change the import Elm from... line to sth like import Elm from 'YourNewAppFolder/Main' and add app/javascript/YourNewAppFolder to the list of src directories in elm-package.json (which lies inside your rails root). Then webpack should only compile Main.elm and let elm-make decide which other sources to compile. I hope that helps :) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.