Closed
Description
- I confirm that this is an issue rather than a question.
Bug report
If you do not set --temp .temp
, hot reload can only reload markdown, but can not reload config.js
files, navigation bar, sidebar title, front matter, etc.
Version
Steps to reproduce
npm install -g vuepress@next
echo '# Hello VuePress!' > README.md
- Create file
.vuepress/config.js
module.exports = {
themeConfig: {
nav: [
{ text: 'home', link: '/' }
],
sidebarDepth: 2,
sidebar: {
'/': [
['', 'home']
]
}
}
}
vuepress dev .
- Edit file
.vuepress/config.js
module.exports = {
themeConfig: {
nav: [
{ text: 'home', link: '/' }
],
sidebarDepth: 2,
sidebar: {
'/': [
['', 'newHome']
]
}
}
}
What is expected?
sidebar title 'home
to newHome
What is actually happening?
no change
Other relevant information
Websocket connection is normal.
- Your OS: Windows 10
- Node.js version: v11.2.0
- Browser version: Google Chrome 73.0.3683.103
- Is this a global or local install? global
- Which package manager did you use for the install? npm 6.4.1
- Does this issue occur when all plugins are disabled? yes