Skip to content

Instantly share code, notes, and snippets.

@quicksnap
Created May 29, 2014 16:44
Show Gist options
  • Save quicksnap/3e83130526495026087f to your computer and use it in GitHub Desktop.
Save quicksnap/3e83130526495026087f to your computer and use it in GitHub Desktop.
// Injecting mock data after 'index' task has run
gulp.src('./.tmp/index.html')
.pipe(g.inject( gulp.src('./src/mock/*.{js,css}'),
{ read: false,
addRootSlash:false,
ignorePath: 'src/mock',
starttag: '<!-- inject:mock:{{ext}} -->'
}))
.pipe(gulp.dest('./.tmp/'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment