Skip to content

Is there a way to specify the watch patterns? #78

Description

@nwinkler

Looking at the code, the options.bases array is added to the watch task with the '/**/*.*' extension, which means that everything under the bases folders is being watched.

This is less than ideal, in many cases one only wants to watch for changes in a certain file type, especially when using something like Bower for pulling in dependencies. In this case, I want to mount/serve all of the directories (including the ones provided by Bower), but I only want to watch for changes in certain files, e.g. **/*.html.

Is there a way to achieve this? With the current version, once I enable on the livereload flag, the watch task takes a long time to go through all of the files, resulting in a delay of several seconds.

The only way to work around this seems to be to disable livereload and provide a more fine-grained definition of the watch task...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions