Skip to content

Replace webpack with modd#33

Closed
ThomasWeiser wants to merge 1 commit into
masterfrom
33-modd-devd
Closed

Replace webpack with modd#33
ThomasWeiser wants to merge 1 commit into
masterfrom
33-modd-devd

Conversation

@ThomasWeiser
Copy link
Copy Markdown
Contributor

And while at it, add some installation instructions to the README

@oliverbarnes oliverbarnes added this to the 0.0.1 milestone Nov 6, 2016
Webpack is currently only used for automatically compiling the elm sources and reloading in the browser.

The tools modd/devd do the same with much less boilerplate. No need to have the npm machinery.

https://github.com/cortesi/modd
https://github.com/cortesi/devd

Current version v0.6 of devd doesn't support serving SPAs with non-hash-routes.
See this related issue: cortesi/devd#38

Since we don't want to use hash-routes, we will not use this modd/devd setup as long as devd doesn't support them.
@ThomasWeiser
Copy link
Copy Markdown
Contributor

(Prepare to) use modd and devd instead of npm and webpack

Webpack is currently only used for automatically compiling the Elm sources and reloading in the browser. The tools modd/devd do the same with much less boilerplate. No need to have the npm machinery.

Current version v0.6 of devd doesn't support serving SPAs with non-hash-routes though, which may change in the future.

Since we don't want to use hash-routes, we will not use this modd/devd setup as long as devd doesn't support them.

So this PR is currently on hold.

@oliverbarnes oliverbarnes removed this from the 0.0.1 milestone Nov 7, 2016
@ThomasWeiser
Copy link
Copy Markdown
Contributor

Another option to keep in mind would be maxgurewitz/elm-server.

It's a npm package with a standalone cli tool, much easier to configure than webpack, keeps colors from elm-make out of the box and does hot reloading. Unfortunately it currently has the same restrictions on SPA routing as devd, with an open issue on that.

@ThomasWeiser
Copy link
Copy Markdown
Contributor

Closing this for now.

If either devd or elm-server get an appropriate update, we can reconsider these options.

@oliverbarnes oliverbarnes deleted the 33-modd-devd branch November 8, 2016 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants