From 59d934783808f2ec455154b8d52d8cef6236a40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Fern=C3=A1ndez?= Date: Mon, 25 Jan 2016 12:46:41 +0100 Subject: [PATCH] fix(gulp): Removing transformUrl replace function from templatecache gulp task --- gulpfile.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index eb62fc536d..4a9248d19e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -204,18 +204,13 @@ gulp.task('imagemin', function () { // Angular template cache task gulp.task('templatecache', function () { - var re = new RegExp('\\' + path.sep + 'client\\' + path.sep, 'g'); - return gulp.src(defaultAssets.client.views) .pipe(plugins.templateCache('templates.js', { root: 'modules/', module: 'core', templateHeader: '(function () {' + endOfLine + ' \'use strict\';' + endOfLine + endOfLine + ' angular' + endOfLine + ' .module(\'<%= module %>\'<%= standalone %>)' + endOfLine + ' .run(templates);' + endOfLine + endOfLine + ' templates.$inject = [\'$templateCache\'];' + endOfLine + endOfLine + ' function templates($templateCache) {' + endOfLine, templateBody: ' $templateCache.put(\'<%= url %>\', \'<%= contents %>\');', - templateFooter: ' }' + endOfLine + '})();' + endOfLine, - transformUrl: function (url) { - return url.replace(re, path.sep); - } + templateFooter: ' }' + endOfLine + '})();' + endOfLine })) .pipe(gulp.dest('build')); });