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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to