Don't use spread to increase backwards compat
This commit is contained in:
parent
356ddd41cb
commit
5bac55caac
|
|
@ -44,9 +44,10 @@ 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. */
|
||||||
return file.match(/.*\.css/) ? true : false;
|
return file.match(/.*\.css/) ? true : false;
|
||||||
|
|
@ -55,7 +56,8 @@ function buildTask(options) {
|
||||||
var cssPath = path.win32.basename(current);
|
var cssPath = path.win32.basename(current);
|
||||||
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'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue