Keep license comment when minifying

This commit is contained in:
Faisal Salman 2014-11-07 15:19:58 +07:00
parent b0ed222114
commit a78d3f7d4b
2 changed files with 9 additions and 7 deletions

View File

@ -33,5 +33,5 @@ echo "Running test..."
$MOCHA_DIR -R nyan test/test.js $MOCHA_DIR -R nyan test/test.js
echo "Minifying script..." echo "Minifying script..."
$UGLIFY_DIR src/ua-parser.js > dist/ua-parser.min.js $UGLIFY_DIR src/ua-parser.js > dist/ua-parser.min.js --comments '/UAParser\.js/'
echo "OK" echo "OK"

View File

@ -1,9 +1,11 @@
// UAParser.js v0.7.1 /**
// Lightweight JavaScript-based User-Agent string parser * UAParser.js v0.7.1
// https://github.com/faisalman/ua-parser-js * Lightweight JavaScript-based User-Agent string parser
// * https://github.com/faisalman/ua-parser-js
// Copyright © 2012-2014 Faisal Salman <fyzlman@gmail.com> *
// Dual licensed under GPLv2 & MIT * Copyright © 2012-2014 Faisal Salman <fyzlman@gmail.com>
* Dual licensed under GPLv2 & MIT
*/
(function (window, undefined) { (function (window, undefined) {