-
-
Save monecchi/c56f787377c32f947ae3fda76d97b605 to your computer and use it in GitHub Desktop.
Gulp + Wiredep + Timber + Twig
This file contains hidden or 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