rollup-watch icon indicating copy to clipboard operation
rollup-watch copied to clipboard

New option to run another script when start watching

Open binarykitchen opened this issue 7 years ago • 5 comments

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.

binarykitchen avatar Jun 24 '17 04:06 binarykitchen

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

meszaros-lajos-gyorgy avatar Jun 24 '17 12:06 meszaros-lajos-gyorgy

Might be a duplicate for #48

meszaros-lajos-gyorgy avatar Jun 24 '17 12:06 meszaros-lajos-gyorgy

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

binarykitchen avatar Jun 25 '17 01:06 binarykitchen

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).

ScottMaclure avatar Jul 31 '17 23:07 ScottMaclure

Would be really useful.

CoskunSunali avatar May 19 '18 13:05 CoskunSunali