X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=scripts%2Fbuild.sh;h=9374a9c0b077f8bd3acb3bc93b63069f91e346d1;hb=401ff9f17c622f3173cc8d34cfcf3e444620d7d0;hp=d9ea2e2254394dff8eea7fba016132c07d684894;hpb=514a10f302043e48459a79806775b6925dc9a7b5;p=dygraphs.git diff --git a/scripts/build.sh b/scripts/build.sh index d9ea2e2..9374a9c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -34,8 +34,11 @@ browserify \ # Create dist/dygraph.tmp.js.map cat dist/dygraph.tmp.js | exorcist --base . dist/dygraph.tmp.js.map > /dev/null +header='/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' + # Create dist/dygraph.js.min{,.map} uglifyjs --compress --mangle \ + --preamble "$header" \ --in-source-map dist/dygraph.tmp.js.map \ --source-map-include-sources \ --source-map dist/dygraph.min.js.map \