From 32aba6d1db0a32288e563dbb20aa334236f43cb9 Mon Sep 17 00:00:00 2001 From: Patrick Weston Date: Tue, 6 Oct 2015 15:47:16 -0500 Subject: [PATCH] Changes the CSS path from relative to absolute --- Gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index fd41ac8..6f81b60 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -29,7 +29,7 @@ gulp.task('inject-default', function () { // It's not necessary to read the files (will speed up things), we're only after their paths: var sources = gulp.src(['source/code/css/*.css', 'source/code/js/*.js'], {read: false}); // Inject but trim the path to be relative to HTML - return target.pipe(inject(sources, {ignorePath: 'source', addRootSlash: false })) + return target.pipe(inject(sources, {ignorePath: 'source', addRootSlash: true })) .pipe(gulp.dest('source/code/_views')); }); @@ -39,7 +39,7 @@ gulp.task('inject-min', function () { // It's not necessary to read the files (will speed up things), we're only after their paths: var sources = gulp.src(['source/code/min/*.css', 'source/code/min/*.js'], {read: false}); // Inject but trim the path to be relative to HTML - return target.pipe(inject(sources, {ignorePath: 'source', addRootSlash: false })) + return target.pipe(inject(sources, {ignorePath: 'source', addRootSlash: true })) .pipe(gulp.dest('source/code/_views')); });