add bundle-collapser and save 1619b gzipped (~4%) (#837)
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -13,11 +13,12 @@ | ... | @@ -13,11 +13,12 @@ |
13 | "scripts": { | 13 | "scripts": { |
14 | "prebuild": "npm run clean", | 14 | "prebuild": "npm run clean", |
15 | "build": "npm-run-all -p build:*", | 15 | "build": "npm-run-all -p build:*", |
16 | "build:js": "npm-run-all build:js:babel build:js:browserify build:js:bannerize build:js:uglify", | 16 | "build:js": "npm-run-all build:js:babel build:js:browserify build:js:bannerize build:js:collapse build:js:uglify", |
17 | "build:js:babel": "babel src -d es5", | 17 | "build:js:babel": "babel src -d es5", |
18 | "build:js:bannerize": "bannerize dist/videojs-contrib-hls.js --banner=scripts/banner.ejs", | 18 | "build:js:bannerize": "bannerize dist/videojs-contrib-hls.js --banner=scripts/banner.ejs", |
19 | "build:js:browserify": "browserify . -s videojs-contrib-hls -g browserify-shim -o dist/videojs-contrib-hls.js", | 19 | "build:js:browserify": "browserify . -s videojs-contrib-hls -g browserify-shim -o dist/videojs-contrib-hls.js", |
20 | "build:js:uglify": "uglifyjs dist/videojs-contrib-hls.js --comments --mangle --compress -o dist/videojs-contrib-hls.min.js", | 20 | "build:js:collapse": "bundle-collapser dist/videojs-contrib-hls.js -o dist/videojs-contrib-hls.min.js", |
21 | "build:js:uglify": "uglifyjs dist/videojs-contrib-hls.min.js --comments -m -c -o dist/videojs-contrib-hls.min.js", | ||
21 | "build:test": "npm-run-all build:test:manifest build:test:js", | 22 | "build:test": "npm-run-all build:test:manifest build:test:js", |
22 | "build:test:js": "node scripts/build-test.js", | 23 | "build:test:js": "node scripts/build-test.js", |
23 | "build:test:manifest": "node -e \"var b=require('./scripts/manifest-data.js'); b.build();\"", | 24 | "build:test:manifest": "node -e \"var b=require('./scripts/manifest-data.js'); b.build();\"", |
... | @@ -97,6 +98,7 @@ | ... | @@ -97,6 +98,7 @@ |
97 | "bannerize": "^1.0.0", | 98 | "bannerize": "^1.0.0", |
98 | "browserify": "^11.0.0", | 99 | "browserify": "^11.0.0", |
99 | "browserify-shim": "^3.0.0", | 100 | "browserify-shim": "^3.0.0", |
101 | "bundle-collapser": "^1.2.1", | ||
100 | "connect": "^3.4.0", | 102 | "connect": "^3.4.0", |
101 | "cowsay": "^1.1.0", | 103 | "cowsay": "^1.1.0", |
102 | "d3": "3.4.8", | 104 | "d3": "3.4.8", | ... | ... |
-
Please register or sign in to post a comment