mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 16:38:47 +03:00
Keep license comment when minifying
This commit is contained in:
parent
b0ed222114
commit
a78d3f7d4b
@ -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"
|
||||||
|
@ -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) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user