diff options
author | Sam Potts <sam@selz.com> | 2017-11-04 22:14:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-04 22:14:55 +1100 |
commit | be4b5ef4dbcf64b7e62fc30b9ee21c51b8b8daf5 (patch) | |
tree | bd5f6d536ea8aced78af2949aa63c9bf41aff994 /gulpfile.js | |
parent | 55c5b8b07e21f0b0b42b1860a5a11fd60b967901 (diff) | |
parent | a924d406201a2de8a7f090c2a432165fb1e84cae (diff) | |
download | plyr-be4b5ef4dbcf64b7e62fc30b9ee21c51b8b8daf5.tar.lz plyr-be4b5ef4dbcf64b7e62fc30b9ee21c51b8b8daf5.tar.xz plyr-be4b5ef4dbcf64b7e62fc30b9ee21c51b8b8daf5.zip |
Merge branch 'master' into master
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gulpfile.js b/gulpfile.js index 923483e5..26b97238 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -77,20 +77,20 @@ function loadJSON(path) { // Create a file from a string // http://stackoverflow.com/questions/23230569/how-do-you-create-a-file-from-a-string-in-gulp function createFile(filename, string) { - var src = require('stream').Readable({ - objectMode: true + var src = require('stream').Readable({ + objectMode: true }); src._read = function () { - this.push(new gutil.File({ - cwd: "", - base: "", - path: filename, + this.push(new gutil.File({ + cwd: "", + base: "", + path: filename, contents: new Buffer(string), // stats also required for some functions // https://nodejs.org/api/fs.html#fs_class_fs_stats stat: { size: string.length - } + } })); this.push(null); } |