vic / elmx-webpack-preloader

Compile elmx to elm files before using elm-webpack-loader
https://www.npmjs.com/package/elmx-webpack-preloader
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Entry point file Main.elm can't be elmx #2

Open bbugh opened 8 years ago

bbugh commented 8 years ago

I'm new to webpack and I've set up a simple project for myself that uses elmx. However, having reviewed the code of this library and trying a bunch of different configurations, it seems like the initial entry Elm file is expected to be .elm, like Main.elm instead of Main.elmx. Is that a limitation of the current implementation of this library, or is it an issue with my setup?

vic commented 8 years ago

Yes it's currently a limitation, the preloader actually reads .elm files, and then looks inside of them for any elmx dependencies to compile.