From 7130a11539ceb665fa8bd8a240b05c2535dc7dbd Mon Sep 17 00:00:00 2001 From: Gennadiy Litvinyuk Date: Fri, 5 Feb 2016 15:03:19 +0100 Subject: [PATCH] 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 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index fd960cb40..0e2981509 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; } },