From 5bac55caac7cf1532a88d8cc9f30856745dd4d8b Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Tue, 3 Sep 2019 11:36:49 +0200 Subject: [PATCH] Don't use spread to increase backwards compat --- tasks/build.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/build.js b/tasks/build.js index ba96905..0704e68 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -44,9 +44,10 @@ function buildTask(options) { } }) .on('end', function finishedTemplateDirWalk() { - const context = { - ...conf, - stylesheets: stylesheets + const context = Object.assign( + conf, + { + stylesheets: stylesheets .filter(function filterFiles (file) { /* Read only CSS files. */ return file.match(/.*\.css/) ? true : false; @@ -55,7 +56,8 @@ function buildTask(options) { var cssPath = path.win32.basename(current); return (prev += ''); }, '') - } + } + ); options .src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html'])