From 380823e82377cc3302e708eeedd2af1b973287c8 Mon Sep 17 00:00:00 2001 From: Terrence Keane Date: Thu, 21 Jan 2016 21:17:13 -0500 Subject: [PATCH] Fix grunt build task useminPrepare and imagemin errors On the grunt build task, grunt was issuing the following errors: Running "useminPrepare:html" (useminPrepare) task Warning: An error occurred while processing a template (Unexpected token )). Use --force to continue. Running "imagemin:dist" (imagemin) task Warning: An error occurred while processing a template (Unexpected token )). Used --force, continuing. The bug was caused by additional '%' characters added to the closing template stings on the imagemin task in the gruntfile. Resolves: #632 --- app/templates/Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index a15c6455..c094a466 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -298,9 +298,9 @@ module.exports = function (grunt) { dest: '<%%= config.dist %>/images' },{ expand: true, - cwd: '<%%= config.app %%>', + cwd: '<%%= config.app %>', src: '*.{ico,png}', - dest: '<%%= config.dist %%>' + dest: '<%%= config.dist %>' }] } },