-
Notifications
You must be signed in to change notification settings - Fork 48
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
Don't need reload.js #76
Comments
That's impossible it needs that script tag, so when the browser requests it, the express route created by reload will send the reload-client file. |
I'll have another look at it |
I cloned a fresh copy and it still worked. Heres what I did (in ubuntu terminal). Node version v6.10.2. Npm version v4.5.0. $ git clone https://github.com/jprichardson/reload.git
$ cd reload
$ npm install # in reload directory
$ cd expressSampleApp
$ npm install # in reload/expressSampleApp directory Then I removed the script tag, saved the file, and run: $ ./node_modules/reload/bin/reload server.js -d ./public |
Just had a look at the inspector in my browser. Turns out that reload-server.js is inserting the reload.js file into the webpage. I've made a pull request #79. |
In the sample express application. I found that it runs fine when I deleted the
<script src="/reload/reload.js"></script>
line. When do you need to include that tag?The text was updated successfully, but these errors were encountered: