Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch should work only in when the runner is in idle mode #124

Open
ranyitz opened this issue Nov 7, 2017 · 0 comments
Open

watch should work only in when the runner is in idle mode #124

ranyitz opened this issue Nov 7, 2017 · 0 comments

Comments

@ranyitz
Copy link
Collaborator

ranyitz commented Nov 7, 2017

Users use the watch function when writing presets.

watch(`./**/*.scss`, changed => run(
    read({pattern: changed}),
    sass(),
    write({target: 'dist'}),
  ));

This watch is only important when the initial run has finished, otherwise, it could result in an unexpected behavior. (another sass compilation as a result of a copy tast on the first run)

If we'll start the watch listener only after the runner reached to idle mode, then the user would be able to configure the watch wherever he wants.

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

No branches or pull requests

2 participants