Skip to content

Commit

Permalink
package.json: add bundle collapser, save 3kB on hls.js/hls.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Sep 13, 2016
1 parent d20110b commit 6e6b9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"clean": "rimraf dist/*",
"prebuild": "npm run clean && npm run test",
"build": "npm run babel && browserify -t browserify-versionify -t [babelify] -p browserify-derequire -s Hls src/index.js --debug | exorcist dist/hls.js.map -b . > dist/hls.js",
"build": "npm run babel && browserify -t browserify-versionify -t [babelify] -p browserify-derequire -p bundle-collapser/plugin -s Hls src/index.js --debug | exorcist dist/hls.js.map -b . > dist/hls.js",
"postbuild": "npm run minify",
"preparerelease": "npm run prebuild && npm run build && npm run postbuild && git add dist/* && git commit -m 'update dist'",
"prerelease": "mversion prerelease && npm run preparerelease",
Expand Down Expand Up @@ -45,6 +45,7 @@
"browserify": "^13.0.0",
"browserify-derequire": "^0.9.4",
"browserify-versionify": "^1.0.6",
"bundle-collapser": "^1.2.1",
"deep-strict-equal": "^0.2.0",
"exorcist": "^0.4.0",
"http-server": "^0.9.0",
Expand Down

0 comments on commit 6e6b9a3

Please sign in to comment.