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 does not take effect for config.js #372

Closed
3 tasks done
rxliuli opened this issue Aug 23, 2021 · 0 comments · Fixed by #364
Closed
3 tasks done

hmr does not take effect for config.js #372

rxliuli opened this issue Aug 23, 2021 · 0 comments · Fixed by #364
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@rxliuli
Copy link

rxliuli commented Aug 23, 2021

Describe the bug

In short, after modifying .vitepress/config.js, the hot update is not triggered

vitepress 热更新错误演示

Reproduction

Our package.json

{
  "name": "wiki",
  "version": "1.0.1",
  "main": "index.js",
  "private": true,
  "scripts": {
    "dev": "vitepress dev",
    "build": "vitepress build",
    "serve": "vitepress serve"
  },
  "devDependencies": {
    "markdown-it-disable-url-encode": "^1.0.1",
    "prettier": "^2.3.2",
    "vite-plugin-components": "^0.13.2",
    "vite-plugin-icons": "^0.6.3",
    "vite-plugin-windicss": "^1.2.7",
    "vitepress": "^0.16.1",
    "windicss": "^3.1.7"
  },
  "dependencies": {
    "@iconify/json": "^1.1.391",
    "@vueuse/core": "^6.0.0"
  }
}

Expected behavior

更新 config.js 之后能够自动热更新

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
    Memory: 31.43 GB / 63.87 GB
  Binaries:
    Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.11 - C:\Program Files\nodejs\yarn.CMD
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.78)
    Internet Explorer: 11.0.19041.906

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@rxliuli rxliuli added the bug: pending triage Maybe a bug, waiting for confirmation label Aug 23, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant