Commit 7ba341ab1ed8791a2a0d35bdd1bffc249258c604
1 parent
49901b8d
Exists in
master
and in
1 other branch
Fix image path
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
gulp/build.js
| ... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 | var path = require('path'); |
| 4 | 4 | var gulp = require('gulp'); |
| 5 | 5 | var conf = require('./conf'); |
| 6 | +var noosferoThemePrefix = "/designs/themes/angular/dist/"; | |
| 6 | 7 | |
| 7 | 8 | var $ = require('gulp-load-plugins')({ |
| 8 | 9 | pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del'] |
| ... | ... | @@ -43,6 +44,7 @@ gulp.task('html', ['inject', 'partials'], function () { |
| 43 | 44 | .pipe(assets = $.useref.assets()) |
| 44 | 45 | .pipe($.rev()) |
| 45 | 46 | .pipe(jsFilter) |
| 47 | + .pipe($.replace('assets/images/', noosferoThemePrefix + 'assets/images/')) | |
| 46 | 48 | .pipe($.sourcemaps.init()) |
| 47 | 49 | .pipe($.ngAnnotate()) |
| 48 | 50 | .pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify')) |
| ... | ... | @@ -56,7 +58,7 @@ gulp.task('html', ['inject', 'partials'], function () { |
| 56 | 58 | .pipe(cssFilter.restore) |
| 57 | 59 | .pipe(assets.restore()) |
| 58 | 60 | .pipe($.useref()) |
| 59 | - .pipe($.revReplace({prefix: "/designs/themes/angular/dist/"})) | |
| 61 | + .pipe($.revReplace({prefix: noosferoThemePrefix})) | |
| 60 | 62 | .pipe(htmlFilter) |
| 61 | 63 | .pipe($.minifyHtml({ |
| 62 | 64 | empty: true, | ... | ... |