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,6 +3,7 @@ | ||
3 | var path = require('path'); | 3 | var path = require('path'); |
4 | var gulp = require('gulp'); | 4 | var gulp = require('gulp'); |
5 | var conf = require('./conf'); | 5 | var conf = require('./conf'); |
6 | +var noosferoThemePrefix = "/designs/themes/angular/dist/"; | ||
6 | 7 | ||
7 | var $ = require('gulp-load-plugins')({ | 8 | var $ = require('gulp-load-plugins')({ |
8 | pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del'] | 9 | pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del'] |
@@ -43,6 +44,7 @@ gulp.task('html', ['inject', 'partials'], function () { | @@ -43,6 +44,7 @@ gulp.task('html', ['inject', 'partials'], function () { | ||
43 | .pipe(assets = $.useref.assets()) | 44 | .pipe(assets = $.useref.assets()) |
44 | .pipe($.rev()) | 45 | .pipe($.rev()) |
45 | .pipe(jsFilter) | 46 | .pipe(jsFilter) |
47 | + .pipe($.replace('assets/images/', noosferoThemePrefix + 'assets/images/')) | ||
46 | .pipe($.sourcemaps.init()) | 48 | .pipe($.sourcemaps.init()) |
47 | .pipe($.ngAnnotate()) | 49 | .pipe($.ngAnnotate()) |
48 | .pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify')) | 50 | .pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify')) |
@@ -56,7 +58,7 @@ gulp.task('html', ['inject', 'partials'], function () { | @@ -56,7 +58,7 @@ gulp.task('html', ['inject', 'partials'], function () { | ||
56 | .pipe(cssFilter.restore) | 58 | .pipe(cssFilter.restore) |
57 | .pipe(assets.restore()) | 59 | .pipe(assets.restore()) |
58 | .pipe($.useref()) | 60 | .pipe($.useref()) |
59 | - .pipe($.revReplace({prefix: "/designs/themes/angular/dist/"})) | 61 | + .pipe($.revReplace({prefix: noosferoThemePrefix})) |
60 | .pipe(htmlFilter) | 62 | .pipe(htmlFilter) |
61 | .pipe($.minifyHtml({ | 63 | .pipe($.minifyHtml({ |
62 | empty: true, | 64 | empty: true, |