Last active
          August 29, 2015 14:10 
        
      - 
      
 - 
        
Save scottcorgan/4242ce4ae07112e2c411 to your computer and use it in GitHub Desktop.  
    Divshot local with LiveReload and 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
    
  
  
    
  | var livereload = require('gulp-livereload'), | |
| superstatic = require('superstatic'), | |
| dest = 'build'; | |
| gulp.task('server', function(next) { | |
| var server = superstatic(); | |
| next(); | |
| }); | |
| gulp.task('watch', ['server'], function() { | |
| var server = livereload(); | |
| gulp.watch(dest + '/**').on('change', function(file) { | |
| server.changed(file.path); | |
| }); | |
| }); | 
      
          
      
      
            daanaerts
  
      
      
      commented 
        Dec 2, 2014 
      
    
  
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment