From 11777465cf77e2a0bbd0d576a1dadd76a8c2f55d Mon Sep 17 00:00:00 2001 From: kit Date: Tue, 18 Jul 2017 20:41:40 +0800 Subject: [PATCH] Update templateCache root path --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0a33e849..a578b682 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -266,7 +266,7 @@ gulp.task('makeUploadsDir', function () { gulp.task('templatecache', function () { return gulp.src(defaultAssets.client.views) .pipe(plugins.templateCache('templates.js', { - root: 'modules/', + 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 %>\');',