Skip to content

Instantly share code, notes, and snippets.

@dunckr
Created July 23, 2014 21:14
Show Gist options
  • Select an option

  • Save dunckr/b39614f50e28241f47bc to your computer and use it in GitHub Desktop.

Select an option

Save dunckr/b39614f50e28241f47bc to your computer and use it in GitHub Desktop.
Wintersmith integration with Gulp
'use strict';
var gulp = require('gulp'),
wintersmith = require('wintersmith'),
env = wintersmith('./config.json');
gulp.task('build', function() {
return env.build();
});
gulp.task('preview', function() {
return env.preview(function(error, preview) {
if (error) throw Error();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment