EmilMoe's avatar
Level 10

BrowserSync + Valet. Not possible?

I'm trying everything here to make BrowserSync (npm run hot) to work. But no matter what I do the asset URLs are not working at all.

I tried to add this config:

    .browserSync({
        open: false,
        host: 'project.test',
        proxy: 'project.test',
    })

But the domain serving it is wrong and the asset paths are not working.

 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from http://localhost:8080/

What can I Have been doing wrong?

0 likes
2 replies
EmilMoe's avatar
Level 10

I just realized the command for BrowserSync is npm run watch. That helps a lot of course!

However, can someone help me how to enable hot reload so I don't have to refresh ?

Please or to participate in this conversation.