diff --git a/gulp/sounds.js b/gulp/sounds.js index c38e7a6e..aaae606f 100644 --- a/gulp/sounds.js +++ b/gulp/sounds.js @@ -16,6 +16,12 @@ function gulptasksSounds($, gulp, buildFolder) { cacheDirName: "shapezio-precompiled-sounds", }); + function getFileCacheValue(file) { + const { _isVinyl, base, cwd, contents, history, stat, path } = file; + const encodedContents = Buffer.from(contents).toString('base64'); + return { _isVinyl, base, cwd, contents: encodedContents, history, stat, path }; + } + // Encodes the game music gulp.task("sounds.music", () => { return gulp @@ -34,6 +40,7 @@ function gulptasksSounds($, gulp, buildFolder) { { name: "music", fileCache, + value: getFileCacheValue, } ) ) @@ -58,6 +65,7 @@ function gulptasksSounds($, gulp, buildFolder) { { name: "music-high-quality", fileCache, + value: getFileCacheValue, } ) )