Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content edits are not reloaded in dev mode #22

Closed
danmarcab opened this issue Nov 14, 2019 · 1 comment · Fixed by #23
Closed

Content edits are not reloaded in dev mode #22

danmarcab opened this issue Nov 14, 2019 · 1 comment · Fixed by #23

Comments

@danmarcab
Copy link
Contributor

When you make a change in a content file (markdown for example), you can see in the console `elm-pages is watching the files and running:

Rerunning for content/posts/post.md
Running elm-pages...
Done!
elm-pages DONE
ℹ 「wdm」: Compiling...
Started compiling Elm..
ℹ 「wdm」: Compiled successfully.

The sequence in the output suggest elm-pages is doing its thing, then webpack is noticing the change and building.

Unfortunately if you reload the page in the browser, the changes are not there, you only see a blank page (not even the old state).

You need to restart elm-pages to see the content.

NOTES:

  • Changing an .elm file and reloading the page works fine.
  • According to the discussion in slack, @dillonkearns thinks this is probably
    webpack and elm-pages stepping on each other's toes.

@dillonkearns thank you again for the great work you are doing! If you want help I'd love to give it a try, pointers welcome because I am definitely not a webpack expert :)

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 a pull request may close this issue.

2 participants