-
Notifications
You must be signed in to change notification settings - Fork 183
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
How can I use --watch with this setup? #18
Comments
That is what |
But using |
I'm also having issues with using |
@erik-viking Can you share a repository link? If you're relying on Laravel Mix and its watch feature you should keep the
|
@erik-viking Thanks for this. It works for me, not experiencing the rebuild on refresh. HMR isn't working however. Did you get it to work for you? If it hasn't already, maybe "watch" should be added to package.json that ships with vue-cli-3 |
@kharysharpe HMR won't work when |
@emanuelmutschlechner Thanks, but it seems like it is trying to do something, *.hot.json files being generated on changes, as if it is meant to work. |
Right, my package.json has The "R" in HMR would not work, I think you have to use a custom implementation of livereload or browsersync in order for that to work properly. Right now I just have to manualy refresh the page after the files are updated in the Also, for more insight, here's what my vue.config.js file looks like:
|
Did you ever get this resolved? I have a very similar need with a php backend. |
No, I'm pretty sure you need to setup some sort of custom browserSync or liveReload functionality in order to get that to work. |
I, too, have a project I would like to use Laravel to serve up the blade file as the entry point for the app (as opposed to vue-cli's node server) and have HMR work as well. I tried following #11, but it doesn't seem to be a straightforward solution. Has anyone been able to get this sort of setup running? Or do I need to ditch vue-cli entirely and run laravel-mix instead? |
I'm trying to use
"watch": "vue-cli-service build --no-clean --watch",
in my package.json and it seems to somewhat work, but it rebuilds everytime I refresh my application.The text was updated successfully, but these errors were encountered: