Skip to content

Commit

Permalink
Changes the CSS path from relative to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfweston committed Oct 6, 2015
1 parent bb67308 commit 32aba6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});

Expand All @@ -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'));
});

Expand Down

0 comments on commit 32aba6d

Please sign in to comment.