Skip to content

Reloading development server #84

Open
@aleyan

Description

I am trying to run a development server locally and code doesn't appear to reload code in the browser on save of file or on reload of browser. This happens when I run the server with npm run start.

Alternatively I have tried running a development server using nwb with npm run serve and then the code reloading does work. However, in this case no css is loaded and the index html is more bare than expected and of providence that I can't figure out:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>react-hn</title>
  </head>
  <body>
    <div id="app"></div>
  <script type="text/javascript" src="/core.js"></script><script type="text/javascript" src="/app.js"></script></body>
</html>

I am running this on MacOS

$ npm --version
4.6.1
$ node --version
v6.10.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions