feature(build) - updated gulp build

pull/210/head
ESadouski 2016-12-07 13:18:09 +03:00
parent 7d639dcb40
commit 4ef797e8cb
1 changed files with 0 additions and 3 deletions

View File

@ -36,11 +36,9 @@ gulp.task('html', ['inject', 'partials'], function () {
var htmlFilter = $.filter('*.html', { restore: true });
var jsFilter = $.filter('**/*.js', { restore: true });
var cssFilter = $.filter('**/*.css', { restore: true });
var assets;
return gulp.src(path.join(conf.paths.tmp, '/serve/*.html'))
.pipe($.inject(partialsInjectFile, partialsInjectOptions))
.pipe(assets = $.useref.assets())
.pipe($.rev())
.pipe(jsFilter)
.pipe($.sourcemaps.init())
@ -54,7 +52,6 @@ gulp.task('html', ['inject', 'partials'], function () {
.pipe($.minifyCss({ processImport: false }))
.pipe($.sourcemaps.write('maps'))
.pipe(cssFilter.restore)
.pipe(assets.restore())
.pipe($.useref())
.pipe($.revReplace())
.pipe(htmlFilter)