uswds / uswds-compile

Simple Gulp 5 functions for copying USWDS static assets and transforming USWDS Sass into browser-readable CSS.
Other
20 stars 12 forks source link

Why use functions instead of gulp task #21

Closed smustgrave closed 2 years ago

smustgrave commented 2 years ago

Curious as to why the functions aren't gulp tasks in the traditional way?

mejiaj commented 2 years ago

Morning! When gulp v4 came out they recommended using function definitions in their guidance [gulpjs.com].

IMO this setup is more straightforward and allows us to reuse tasks in a cleaner way.

smustgrave commented 2 years ago

Gotcha was curious. Thanks for answering!