8000 How to make HMR Work? · Issue #84 · electron-userland/electron-webpack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to make HMR Work? #84
Closed
Closed
@bradennapier

Description

@bradennapier

Just setting this up and it would appear that HMR does not actually work?

In my case I am trying to get the main process to automatically update when I do something. It doesn't appear to do anything at all when I change the "main" source?

I am using custom directories, not sure if that breaks it for whatever reason.

{
  "name": "electron-boilerplate",
  "version": "1.0.0",
  "description": "A boilerplate for Electron",
  "main": "index.js",
  "scripts": {
    "develop": "electron-webpack dev",
    "compile": "electron-webpack"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "app-root-dir": "^1.0.2",
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-register": "^6.26.0",
    "electron": "^1.7.10",
    "electron-builder": "^19.54.0",
    "electron-webpack": "^1.11.0",
    "webpack": "^3.10.0"
  },
  "dependencies": {
    "electron-log": "^2.2.14",
    "source-map-support": "^0.5.2"
  },
  "electronWebpack": {
    "commonSourceDirectory": "app/shared",
    "main": {
      "sourceDirectory": "app/controller",
      "webpackConfig": "dev/webpack/controller"
    },
    "renderer": {
      "sourceDirectory": "app/views",
      "webpackConfig": "dev/webpack/renderer"
    }
  }
}

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

      0