From b6cb328a3b4e92760ef55dad821aca90dbb42c9a Mon Sep 17 00:00:00 2001 From: vlavellauruit Date: Sat, 26 Sep 2015 19:05:15 -0300 Subject: [PATCH] passing the notification options to the angular_template__inline adding support for the grunt task. Please refer to mi pull request https://github.com/scriby/angular-template-inline-js/pull/2 --- tasks/angular_template_inline_js.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/angular_template_inline_js.js b/tasks/angular_template_inline_js.js index 68bef65..5bfbebc 100644 --- a/tasks/angular_template_inline_js.js +++ b/tasks/angular_template_inline_js.js @@ -18,7 +18,11 @@ module.exports = function(grunt) { grunt.registerMultiTask('angular_template_inline_js', 'A grunt task runner for angular-template-inline-js', function() { // Merge task-specific and/or target-specific options with these defaults. var options = this.options({ - key: 'templateUrl' + key: 'templateUrl', + minify: { + useHtmlMin : false, + options: {} + } }); // Iterate over all specified file groups. @@ -37,7 +41,8 @@ module.exports = function(grunt) { }).forEach(function(fileInfo) { var compiled = compiler.compile(fileInfo.contents, { basePath: options.basePath || path.dirname(fileInfo.path), - key: options.key + key: options.key, + minify : options.minify }); grunt.file.write(f.dest, compiled);