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

Removing 'live-reload' from package.json config does not turn off Live Reload #1188

Open
1 of 5 tasks
hurgleburgler opened this issue Aug 8, 2019 · 4 comments
Open
1 of 5 tasks
Labels

Comments

@hurgleburgler
Copy link

hurgleburgler commented Aug 8, 2019

How often can you reproduce it?

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:
Removing 'live-reload' from the package.json config and running in 'donejs develop' does not turn off live-reload.

Steps to reproduce:

  1. Remove 'live-reload' from configDependencies in package.json
  2. Restart app with 'donejs develop'
  3. Make a change to index.stache
  4. Watch as browser app automagically refreshes

Expected results:

Browser app should not automatically refresh.

Actual results:

Browser app automagically refreshes

Environment:

Software Version
donejs -V 3.2.0
node -v v11.14.0
npm -v 6.9.0
Browser Chrome
Operating system OSX
@matthewp
Copy link
Contributor

matthewp commented Aug 8, 2019

Is this the bug you intended to report? I thought it was about donejs start. The reason that live-reload is not disabled is because --develop always turns on live-reload. So what you want to do is change your package.json scripts "develop" and remove that flag.

@hurgleburgler
Copy link
Author

The other issue has been logged. Is the proper way to turn off 'live-reload' to remove it from the configDependencies, or rather to just run the serve command with --no-live-reload?

@hurgleburgler
Copy link
Author

Per the documentation on done-serve , at https://github.com/donejs/done-serve#-l---no-live-reload

-l, --no-live-reload
Disable live-reload when used with the --develop option.

Even when I update the package.json 'develop' command with this option, it is still live-reloading.

@matthewp
Copy link
Contributor

matthewp commented Aug 8, 2019

I'm going to look into this, that's surprising. I'm not sure why there is both a --no-live-reload and a --develop option, as the primary thing that --develop does is not load a live-reload server.

You can disable it by not passing the --develop flag.

@matthewp matthewp added the bug label Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants