Don't use spread to increase backwards compat

This commit is contained in:
Dan Mindru 2019-09-03 11:36:49 +02:00
parent 356ddd41cb
commit 5bac55caac
1 changed files with 6 additions and 4 deletions

View File

@ -44,8 +44,9 @@ function buildTask(options) {
} }
}) })
.on('end', function finishedTemplateDirWalk() { .on('end', function finishedTemplateDirWalk() {
const context = { const context = Object.assign(
...conf, conf,
{
stylesheets: stylesheets stylesheets: stylesheets
.filter(function filterFiles (file) { .filter(function filterFiles (file) {
/* Read only CSS files. */ /* Read only CSS files. */
@ -56,6 +57,7 @@ function buildTask(options) {
return (prev += '<link rel="stylesheet" href="' + cssPath + '">'); return (prev += '<link rel="stylesheet" href="' + cssPath + '">');
}, '') }, '')
} }
);
options options
.src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html']) .src([cwd + '/**/*.html', '!' + cwd + '/**/*.inc.html'])