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

Watching with serve doesn't work on Windows #60

@CaitlinWeb

Description

@CaitlinWeb

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

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