Wednesday, 15 June 2011

javascript - pass variables from main gulpfile.js to tasks across multiple files -



javascript - pass variables from main gulpfile.js to tasks across multiple files -

in gulp recipes there's 1 splitting gulp tasks across multiple files.

example:

gulpfile.js tasks/ ├── dev.js ├── release.js └── test.js

in gulpfile.js i've variable config containing configs or paths.

how can pass config variable gulpfile.js other tasks across multiple files?

you can set config variable in it's own file , require in other files needing it

javascript node.js npm gulp

No comments:

Post a Comment