Skip to content

Instantly share code, notes, and snippets.

@tjFogarty
Created August 8, 2015 10:52
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tjFogarty/35ee758c82d23bf976c1 to your computer and use it in GitHub Desktop.
Save tjFogarty/35ee758c82d23bf976c1 to your computer and use it in GitHub Desktop.
Gulp + Wiredep + Timber + Twig
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