Hopefully this is a quick question.
What I'm trying to do is to add a timestamp into a Javascript object in a JS file while the file is being built with GULP. Basically, in "file.js", I have an object where I would like to have object.timeStamp that equals the time of the GULP build.
I am currently adding a timestamp to the top of the file using gulp-header, but I have been asked to add the timestamp to a property in the object.
My thought was to inject the value from GULP, but all of the injection plugins I have found so far are for injecting contents of one file into the target file.
Any help would be greatly appreciated.
See Question&Answers more detail:os