Using elm-webpack-starter means that the process is slightly different from the guide.
In the guide, you build elm.js and edit some index.html which has a script tag where you start the Elm app add work with the ports. Using the elm-webpack-starter you have the src/static/index.js where the Elm app is started and mounted on the main div. It is there where you need to add the custom ports code. The rest is done by the builder. On Tue, Nov 8, 2016 at 4:00 AM, Martin DeMello <[email protected]> wrote: > No one? If the recommended solution is to move off webpack (plus pointers > to a replacement) that's fine too; I would just like to get my dev > environment set up once and for all and then go back to writing elm code. > > martin > > On Sat, Nov 5, 2016 at 5:31 PM, Martin DeMello <[email protected]> > wrote: > >> I have my project set up with elm-webpack-starter, which installs a >> boilerplate index.html and index.js >> >> https://github.com/moarwick/elm-webpack-starter/tree/master/src/static >> >> I'm now trying to follow the ports guide >> >> http://guide.elm-lang.org/interop/javascript.html >> >> which says to compile elm to javascript instead and include that in my >> index.html. I couldn't find any guides towards getting that working with >> the starter webpack setup, though, and blindly modifying the index.html >> file as shown, and copying the generated elm.js to src/static, didn't work. >> >> martin >> > > -- > 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. > -- There is NO FATE, we are the creators. blog: http://damoc.ro/ -- 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.
