Answer the question
In order to leave comments, you need to log in
How to make a global variable in gulpjs?
I split tasks into files. You need a global object to store the configuration.
Answer the question
In order to leave comments, you need to log in
You can create a module (let's call it "global-for-gulp" for example) in which you will store the object.
var storage = {};
module.exporst = storage;
var gObj = require("global-for-gulp");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question