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
This commit is contained in:
Gennadiy Litvinyuk
2016-02-05 15:03:19 +01:00
committed by Lon Ingram
parent 1379e8f50c
commit 45e14b7b45
+1 -1
View File
@@ -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;
}
},