summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorGennadiy Litvinyuk <gennadiy@gmail.com>2016-02-05 15:03:19 +0100
committerGennadiy Litvinyuk <gennadiy@gmail.com>2016-02-05 15:03:19 +0100
commit7130a11539ceb665fa8bd8a240b05c2535dc7dbd (patch)
treeea52455ab05f5dc9c9075a00ade43615e944906d /Gruntfile.js
parent4788b031925b7c63120cae49a0b5954ebd0635c3 (diff)
downloadhandlebars.js-7130a11539ceb665fa8bd8a240b05c2535dc7dbd.zip
handlebars.js-7130a11539ceb665fa8bd8a240b05c2535dc7dbd.tar.gz
handlebars.js-7130a11539ceb665fa8bd8a240b05c2535dc7dbd.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
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index fd960cb..0e29815 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;
}
},