Skip to content

Commit 219fa60

Browse files
committed
include a short preamble in minified js
1 parent 0100d55 commit 219fa60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "karma start test/resources/karma.conf.js --single-run",
1010
"test-integration": "TEST_MODE=integration karma start test/resources/karma.conf.js --single-run",
1111
"browserify": "browserify index.js --standalone WatsonSpeech --outfile dist/watson-speech.js",
12-
"minify": "uglifyjs --compress --mangle --screw-ie8 dist/watson-speech.js --output dist/watson-speech.min.js",
12+
"minify": "with-package uglifyjs --compress --mangle --screw-ie8 dist/watson-speech.js --output dist/watson-speech.min.js --preamble \"// IBM Watson Speech JavaScript SDK\n// vpkg.version\n// Generated at `date`\n// Copyright IBM (pkg.license)\"",
1313
"watchify": "watchify index.js --standalone WatsonSpeech --outfile dist/watson-speech.js --debug --verbose",
1414
"build": "npm run browserify && npm run minify",
1515
"doc": "jsdoc -c jsdoc/config.json",
@@ -35,7 +35,8 @@
3535
"uglify-js": "^2.6.1",
3636
"watchify": "^3.7.0",
3737
"watson-developer-cloud": "^1.2.1",
38-
"whatwg-fetch": "^0.11.0"
38+
"whatwg-fetch": "^0.11.0",
39+
"with-package": "^0.2.0"
3940
},
4041
"dependencies": {
4142
"clone": "^1.0.2",

0 commit comments

Comments
 (0)