8000 fix: dev on Windows CreateProcess failed with error 193 (no message a… · electron-userland/electron-webpack@ba8dad0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit ba8dad0

Browse files
christophpredevelar
authored andcommitted
fix: dev on Windows CreateProcess failed with error 193 (no message available) (#228)
Close #223
1 parent c4cf411 commit ba8dad0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/electron-webpack/src/dev/WebpackDevServerManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { LineFilter, logError, logProcess, logProcessErrorOutput } from "./devUt
99
const debug = require("debug")("electron-webpack")
1010

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

0 commit comments

Comments
 (0)
0