Created
July 23, 2014 21:14
-
-
Save dunckr/b39614f50e28241f47bc to your computer and use it in GitHub Desktop.
Wintersmith integration with Gulp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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