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