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

vite.config.js中的server.host配置不生效,npm run dev:h5 -- --host <hostname>也不起作用 #3083

Closed
hxgqh opened this issue Dec 17, 2021 · 1 comment
Assignees
Labels
bug Something isn't working h5 vue3

Comments

@hxgqh
Copy link

hxgqh commented Dec 17, 2021

vite.config.js中的server.host配置不生效,npm run dev:h5 -- --host 也不起作用

import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
const os = require("os");
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
  ],
  server: {
    host: os.hostname(),
  }
})
npm run dev:h5 -- --host myhostname

vite-plugin-uni版本:3.0.0-alpha-3030120211216001

@fxy060608 fxy060608 self-assigned this Dec 17, 2021
@fxy060608 fxy060608 added bug Something isn't working vue3 h5 labels Dec 17, 2021
@fxy060608
Copy link
Collaborator

已修复,更新cli至:3.0.0-alpha-3030120211217001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working h5 vue3
Projects
None yet
Development

No branches or pull requests

2 participants