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
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 serveand 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:I am running this on MacOS