Gulp task for pre-rendering d3 with d3-pre.
See d3-pre for more detailed documentation.
Install the gulp plugin:
$ npm install gulp-d3-pre
Create a gulp task:
gulp.task('prerender-svgs', function() {
gulp.src('./public/index.html')
.pipe(d3Pre())
.pipe(gulp.dest('./public/'));
})