Created
November 24, 2017 09:51
-
-
Save ccapndave/148159eaa5849eb40addeb11906d97ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This works | |
Sparky.task("copy:assets", () => Sparky.watch("./assets/**/*", { base: homeDir }).dest("./dist")); | |
Sparky.task("copy:vendor", () => Sparky.watch("./vendor/**/*", { base: homeDir }).dest("./dist")); | |
Sparky.task("copy:index", () => Sparky.watch("./index.html", { base: homeDir }).dest("./dist")); | |
Sparky.task("copy", ["copy:assets", "copy:vendor", "copy:index"], () => {}); | |
// But this doesn't | |
Sparky.task("copy", () => { | |
return Promise.all([ | |
Sparky.watch("./assets/**/*", { base: homeDir }).dest("./dist"), | |
Sparky.watch("./vendor/**/*", { base: homeDir }).dest("./dist"), | |
Sparky.watch("./index.html", { base: homeDir }).dest("./dist") | |
]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment