Skip to content

Commit

Permalink
Merge pull request #305 from EragonJ/bug/299
Browse files Browse the repository at this point in the history
fixed #299, gulp watch should work now
  • Loading branch information
EragonJ committed Sep 25, 2015
2 parents 6bc8665 + a030cdf commit 41c2729
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var sequence = require('gulp-sequence');
var pathLength = require('gulp-path-length');
var electron = require('gulp-atom-electron');
var shell = require('shelljs');
// var useref = require('gulp-useref');
var useref = require('gulp-useref');
var kakuApp = require('electron-connect').server.create();
var newer = require('gulp-newer');
var webpack = require('webpack');
Expand All @@ -37,13 +37,13 @@ gulp.task('checkPathLength', function() {
});

gulp.task('html', function() {
//var assets = useref.assets();
var assets = useref.assets();

return gulp
.src('./_index.html')
// .pipe(assets)
// .pipe(assets.restore())
// .pipe(useref())
.pipe(gulpif(isProduction(), assets))
.pipe(gulpif(isProduction(), assets.restore()))
.pipe(gulpif(isProduction(), useref()))
.pipe(rename('index.html'))
.pipe(gulp.dest('./'));
});
Expand Down

0 comments on commit 41c2729

Please sign in to comment.