mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Improved build banners, including making them visible in minified version
This commit is contained in:
parent
f28fea8f74
commit
b4ddb5a953
@ -60,7 +60,10 @@ module.exports = function(grunt) {
|
||||
},
|
||||
concat: {
|
||||
options: {
|
||||
banner: "/**\n * @version <%= pkg.name %> <%= pkg.version %>\n */\n\n"
|
||||
banner: "//! <%= pkg.name %> <%= pkg.version %>\n"
|
||||
+ "//! Built on <%= grunt.template.today('yyyy-mm-dd') %>\n"
|
||||
+ "//! http://openseadragon.github.com\n\n",
|
||||
process: true
|
||||
},
|
||||
dist: {
|
||||
src: [ "<banner>" ].concat(sources),
|
||||
@ -68,6 +71,9 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
preserveComments: "some"
|
||||
},
|
||||
openseadragon: {
|
||||
src: [ distribution ],
|
||||
dest: minified
|
||||
|
@ -1,4 +1,6 @@
|
||||
/**
|
||||
* @version <%= pkg.name %> <%= pkg.version %>
|
||||
*
|
||||
* @fileOverview
|
||||
* <h2>
|
||||
* <strong>
|
||||
|
Loading…
Reference in New Issue
Block a user