Skip to content

Instantly share code, notes, and snippets.

@jaawerth jaawerth/gulp-inject task Secret
Created Dec 10, 2014

Embed
What would you like to do?
// Simple gulp-inject setup - automatically add those pesky script tags! ;-)
var inject = require('gulp-inject');
gulp.task('inject', function() {
gulp.src('src/*.html').pipe(inject(gulp.src('./src/{app,components}/**/*.js'), {
read: false,
relative: true,
starttag: '<!-- inject:js -->',
addRootSlash: false
// addPrefix: '/'
})).pipe(gulp.dest('./src'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.