Skip to content

Disable Hot Reload by option #1036

Closed
Closed
@gejgalis

Description

@gejgalis

What problem does this feature solve?

We have built in our project Hot Module Replacement on higher level abstraction and vue-loader prevents our module.hot.accept() trigger. We need to turn off vue-loader Hot Reload feature to be able to use our HMR.

For end user experience - there will be additional option which may be used to disable Hot Reload staying in "development" environment. NOTE: we don't need to disable HMR in styles - this part doesn't break our functionality.

What does the proposed API look like?

module: {
  rules: [
    {
      test: /\.vue$/,
      loader: 'vue-loader',
      options: {
        hotReload: false // disables Hot Reload
      }
    }
  ]
}

I will contribute PullRequest in next few hours.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions