Skip to content

Commit

Permalink
fix dev on Windows CreateProcess failed with error 193 (no message av…
Browse files Browse the repository at this point in the history
…ailable)

ref electron-userland#223
  • Loading branch information
christophpre committed Nov 15, 2018
1 parent c4cf411 commit 89f70b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/electron-webpack/src/dev/WebpackDevServerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { LineFilter, logError, logProcess, logProcessErrorOutput } from "./devUt
const debug = require("debug")("electron-webpack")

function runWds(projectDir: string, env: any) {
const webpackDevServerPath = require.resolve(path.join("webpack-dev-server", "bin", "webpack-dev-server.js"))
const isWin = process.platform === "win32";
const webpackDevServerPath = require.resolve(path.join(".bin", "webpack-dev-server" + (isWin ? ".cmd" : "")));
debug(`Start renderer WDS ${webpackDevServerPath} on ${env.ELECTRON_WEBPACK_WDS_PORT} port`)
return run(webpackDevServerPath, ["--color", "--env.autoClean=false", "--config", path.join(__dirname, "../../webpack.renderer.config.js")], {
env,
Expand Down

0 comments on commit 89f70b9

Please sign in to comment.