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

Hot-reloading does not work in Vagrant Box #317

Closed
libragold opened this issue Jan 31, 2017 · 5 comments
Closed

Hot-reloading does not work in Vagrant Box #317

libragold opened this issue Jan 31, 2017 · 5 comments

Comments

@libragold
Copy link

libragold commented Jan 31, 2017

Hi there,

Happy Chinese New year! 鸡年吉祥!

I am using vuejs for a project. We use vagrant box to set up our development environment. However, we have the following problem with hot-reloading.

After I make changes to files in the host machine, the guest machine does not seem to detect the changes if the dev server runs on the guest machine.
On the other hand, hot-reloading works just fine if I start the dev server on the host machine.
This might be a problem with the configuration, and changes need to be made .

I am also wondering if there is an "official" suggestion on development enviroment.

Thanks,

J.

@libragold libragold changed the title Vagrant box Hotreloading does not work in Virtual machine Jan 31, 2017
@libragold libragold changed the title Hotreloading does not work in Virtual machine Hot-reloading does not work in Virtual machine Jan 31, 2017
@egoist
Copy link
Collaborator

egoist commented Jan 31, 2017

I can't really see any vue-cli related stuffs here, you may search vagrant webpack instead.

@egoist egoist closed this as completed Jan 31, 2017
@libragold
Copy link
Author

libragold commented Jan 31, 2017

If the purpose of vue-cli is to have vue working (including hot reloading) out of the box and to provide developers a smooth experience, I think this issue is relevant. Especially, if this is a problem with webpack configuration (as is suggested in your comment), then it seems that an improvement of vue-cli could be considered.

In particular, I am wondering what changes have to be made to the config files so that webpack watch mode is set to polling . Here is a related article.

@libragold libragold changed the title Hot-reloading does not work in Virtual machine Hot-reloading does not work in Vagrant Box Jan 31, 2017
@egoist
Copy link
Collaborator

egoist commented Jan 31, 2017

You can reopen this issue in relevant template repo you use.

@LinusBorg
Copy link
Member

vuejs-templates/webpack#432

@libragold
Copy link
Author

Thanks @LinusBorg. Modifying devMiddleware in dev-server.js works!

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

No branches or pull requests

3 participants