| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,9 +36,11 @@ gulp.task('html', ['inject', 'partials'], function () { | |||
| 36 | 36 | var htmlFilter = $.filter('*.html', { restore: true }); | |
| 37 | 37 | var jsFilter = $.filter('**/*.js', { restore: true }); | |
| 38 | 38 | var cssFilter = $.filter('**/*.css', { restore: true }); | |
| 39 | + var assets; | ||
| 39 | 40 | ||
| 40 | 41 | return gulp.src(path.join(conf.paths.tmp, '/serve/*.html')) | |
| 41 | 42 | .pipe($.inject(partialsInjectFile, partialsInjectOptions)) | |
| 43 | + .pipe(assets = $.useref.assets()) | ||
| 42 | 44 | .pipe($.rev()) | |
| 43 | 45 | .pipe(jsFilter) | |
| 44 | 46 | .pipe($.sourcemaps.init()) | |
@@ -52,6 +54,7 @@ gulp.task('html', ['inject', 'partials'], function () { | |||
| 52 | 54 | .pipe($.minifyCss({ processImport: false })) | |
| 53 | 55 | .pipe($.sourcemaps.write('maps')) | |
| 54 | 56 | .pipe(cssFilter.restore) | |
| 57 | + .pipe(assets.restore()) | ||
| 55 | 58 | .pipe($.useref()) | |
| 56 | 59 | .pipe($.revReplace()) | |
| 57 | 60 | .pipe(htmlFilter) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ | |||
| 32 | 32 | "gulp-size": "~2.1.0", | |
| 33 | 33 | "gulp-sourcemaps": "~1.9.1", | |
| 34 | 34 | "gulp-uglify": "~2.0.0", | |
| 35 | - "gulp-useref": "~3.1.2", | ||
| 35 | + "gulp-useref": "~1.3.0", | ||
| 36 | 36 | "gulp-util": "~3.0.6", | |
| 37 | 37 | "gulp-zip": "^3.0.2", | |
| 38 | 38 | "http-proxy-middleware": "~0.17.2", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments