Skip to content

Hot reload doesn't normal work without --temp .temp #1536

Closed
@xinyii

Description

@xinyii
  • 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

  1. npm install -g vuepress@next
  2. echo '# Hello VuePress!' > README.md
  3. Create file .vuepress/config.js
module.exports = {
  themeConfig: {
    nav: [
      { text: 'home', link: '/' }
    ],
    sidebarDepth: 2,
    sidebar: {
      '/': [
        ['', 'home']
      ]
    }
  }
}
  1. vuepress dev .
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementRequest to enhance an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions