Created
August 8, 2015 10:52
-
-
Save tjFogarty/35ee758c82d23bf976c1 to your computer and use it in GitHub Desktop.
Gulp + Wiredep + Timber + Twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var config = require('../config'); | |
var wiredep = require('wiredep').stream; | |
gulp.task('wiredep', function () { | |
gulp.src(config.wiredep_file) | |
.pipe(wiredep({ | |
directory: 'assets/lib', | |
ignorePath: '..', | |
fileTypes: { | |
html: { | |
replace: { | |
js: '<script src="{{ site.theme.link }}{{filePath}}"></script>' | |
} | |
} | |
} | |
})).pipe(gulp.dest(config.wiredep_dest)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment