Skip to content

changes for windows #2

@matt-erhart

Description

@matt-erhart
process.on("uncaughtException", exception => {
  process.exit(appProc.pid); // switched kill to exit, else invalid pid error
  throw new Error(exception);
});

script should be something like this for webpack dev server

//start cmd defined then passed as arg[0]
    "start": "webpack-dev-server --mode development --hot --progress --color --port 3000 --open",
    "startWithCypress": "cross-env WAIT_FOR_MESSAGE=\"Compiled\"  cypressAppWatcher start"

then I changed the spawn command:

  appProc = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['run',  myArgs[0]]);

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