项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

build-dist.sh 443 B

1234567891011121314151617
  1. #!/bin/sh
  2. set -ex
  3. BROWSERIFY_CMD="../../node_modules/browserify/bin/cmd.js"
  4. UGLIFY_CMD="../../node_modules/uglify-js/bin/uglifyjs"
  5. mkdir -p dist
  6. node $BROWSERIFY_CMD lib/index.js \
  7. --insert-global-vars 'global' \
  8. --plugin bundle-collapser/plugin \
  9. --plugin derequire/plugin \
  10. >dist/polyfill.js
  11. node $UGLIFY_CMD dist/polyfill.js \
  12. --compress keep_fnames,keep_fargs,warnings=false \
  13. --mangle keep_fnames \
  14. >dist/polyfill.min.js