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

New option to run another script when start watching #53

Open
binarykitchen opened this issue Jun 24, 2017 · 5 comments
Open

New option to run another script when start watching #53

binarykitchen opened this issue Jun 24, 2017 · 5 comments

Comments

@binarykitchen
Copy link

Such a hook would be great and useful for this scenario: call browser-sync ... once rollup has bundled and starts watching for changes.

Don't want browser-sync to open the browser before bundling is complete you know.

@meszaros-lajos-gyorgy
Copy link

+1 for this feature, because at the moment we cannot distinguish, if rollup was started with a watch option.

@meszaros-lajos-gyorgy
Copy link

Might be a duplicate for #48

@binarykitchen
Copy link
Author

Not really a duplicate, more like a post-hook, to run something else when watching has started.

@ScottMaclure
Copy link

ScottMaclure commented Jul 31, 2017

Use case: I want to re-run sw-precache every time rollup has finished building assets.

Edit: Add a "pre-hook" as well, so I can run a linter beforehand (fail early).

@CoskunSunali
Copy link

Would be really useful.

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

4 participants