Gulp task for pre-rendering d3 with d3-pre
HTML JavaScript
Latest commit 17ba8d0 Jul 14, 2016 @mathisonian mathisonian 1.1.12
Permalink
Failed to load latest commit information.
test passing tests Jan 8, 2016
.gitignore Initial commit Jan 8, 2016
LICENSE Update LICENSE Jul 14, 2016
README.md Merge branch 'master' of github.com:fivethirtyeight/gulp-d3-pre Jul 14, 2016
index.js use public module Jul 14, 2016
package.json 1.1.12 Jul 14, 2016

README.md

gulp-d3-pre

Gulp task for pre-rendering d3 with d3-pre.

See d3-pre for more detailed documentation.

Usage

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/'));
})