Skip to content

Multiple watch folders? #348

@norbert-codes

Description

@norbert-codes

How is it possible to specify more than one (by default /src) watch folder for the dev server (npm start)?

The reason is that I'm developing an app, which has some npm dependencies, which I'm also developing, and they are scoped/private packages, so will reside in something like /node_modules/@scope/, so watching this folder and linking those dependencies there would be awesome.
Is it possible somehow? (Of course /src needs to be watched too.)

npm link would solve the issue ofc., but has a long and troubled history with webpack, because of symlinks, so my current solution is that I copy the dependencies on change with wml to the apps node_modules folder, but it won't cause a live reload on the dev server.

Thanks for the answer!

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