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: {
|
concat: {
|
||||||
options: {
|
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: {
|
dist: {
|
||||||
src: [ "<banner>" ].concat(sources),
|
src: [ "<banner>" ].concat(sources),
|
||||||
@ -68,6 +71,9 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
|
options: {
|
||||||
|
preserveComments: "some"
|
||||||
|
},
|
||||||
openseadragon: {
|
openseadragon: {
|
||||||
src: [ distribution ],
|
src: [ distribution ],
|
||||||
dest: minified
|
dest: minified
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
|
* @version <%= pkg.name %> <%= pkg.version %>
|
||||||
|
*
|
||||||
* @fileOverview
|
* @fileOverview
|
||||||
* <h2>
|
* <h2>
|
||||||
* <strong>
|
* <strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user