Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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