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

HMR port not being used #64

Closed
guilheb opened this issue Jul 6, 2022 · 1 comment
Closed

HMR port not being used #64

guilheb opened this issue Jul 6, 2022 · 1 comment

Comments

@guilheb
Copy link
Contributor

guilheb commented Jul 6, 2022

  • Laravel Vite Plugin Version: 0.3.0
  • Laravel Version: 9.19.0
  • Node Version: 14.17.5
  • NPM Version: 6.14.14

Description:

When server.hmr.port is specified in the vite.config.js file, it is not used to generate the public/hot file.

I tried a pull request, but I'm not familiar with the TypeScript syntax and the checks are failing. Can someone help?

Steps To Reproduce:

Add this to vite.config.js

    server: {
        hmr: {
            port: 3081,
        },
    },

Run npm run dev and open the public/hot file. The port number will be the one from server.port (3000 by default).

@jessarcher
Copy link
Member

Let's continue the discussion on #63

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

2 participants