summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Litvinyuk <gennadiy@gmail.com>2016-02-05 15:03:19 +0100
committerLon Ingram <lawnsea@gmail.com>2016-11-11 12:01:16 -0600
commit45e14b7b4557255709e0ca3a07f645ecf0623483 (patch)
tree9de3d40467371f64ea71b10fd2d9b4fa68072f1f
parent1379e8f50c63d78d1faff29134eeecc756971b2d (diff)
downloadhandlebars.js-45e14b7b4557255709e0ca3a07f645ecf0623483.zip
handlebars.js-45e14b7b4557255709e0ca3a07f645ecf0623483.tar.gz
handlebars.js-45e14b7b4557255709e0ca3a07f645ecf0623483.tar.bz2
Preserve License info in Closure Compiler
To preserve license info in Closure Compiler the license has to be JSDoc-comment (not simple comment) and have @license before license text
-rw-r--r--Gruntfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 97cfff0..ce85e9a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -22,7 +22,7 @@ module.exports = function(grunt) {
dist: {
options: {
processContent: function(content) {
- return grunt.template.process('/*!\n\n <%= pkg.name %> v<%= pkg.version %>\n\n<%= grunt.file.read("LICENSE") %>\n@license\n*/\n')
+ return grunt.template.process('/**!\n\n @license\n <%= pkg.name %> v<%= pkg.version %>\n\n<%= grunt.file.read("LICENSE") %>\n*/\n')
+ content;
}
},