| // 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