Skip to content

在虚拟机里面开发,在宿主机上浏览,livereload要怎么配置? #20

@pandelix

Description

@pandelix

我在virtualbox的虚拟机中搭建环境来开发,但是我在本机的Chrome上调试界面

我把resources/admin/src/template/index.html中localhost改为虚拟机的地址192.168.33.10以后能加载js了,
ws://192.168.33.10:35729/livereload也能正常连接,且响应看起来是正常的

但是我本地修改任何东西刷新后还是不生效,每次都要重新yarn watch,并且刷新两次才能看到更改的内容
还有哪里需要改的么?我找了半天都没找到

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions