Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Watching with serve doesn't work on Windows #60

Open
CaitlinWeb opened this issue Nov 19, 2018 · 0 comments
Open

Watching with serve doesn't work on Windows #60

CaitlinWeb opened this issue Nov 19, 2018 · 0 comments

Comments

@CaitlinWeb
Copy link

CaitlinWeb commented Nov 19, 2018

General information

  • NodeJS version: 9.4.0
  • NPM version: 6.4.1

Problem description

On Windows 10 the use of path often returns \ as the path separator. As described in paulmillr/chokidar#777 this causes watched paths with globs to fail.

(Edited) The (temporary?) solution is to use replace(/\\/g, '/') on the path strings to ensure / is used instead.

I could open a PR if that's helpful.

Reproduction steps

With an initialized patternlab: ./node_modules/.bin/patternlab serve --watch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant