Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstrom committed Jul 28, 2022
1 parent 58eba90 commit 3ea6074
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ if [ -d dist ]; then rm -rf dist; fi
mkdir dist

# UMD build
babel src/pinch-zoom.js -o dist/pinch-zoom.umd.js
npx babel src/pinch-zoom.js -o dist/pinch-zoom.umd.js

# Minify
babel-minify --sourceType module src/pinch-zoom.js -o dist/pinch-zoom.min.js
babel-minify dist/pinch-zoom.umd.js -o dist/pinch-zoom.umd.min.js
npx babel-minify --sourceType module src/pinch-zoom.js -o dist/pinch-zoom.min.js
npx babel-minify dist/pinch-zoom.umd.js -o dist/pinch-zoom.umd.min.js

echo "Build completed, see dist directory"

0 comments on commit 3ea6074

Please sign in to comment.