Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
feat: Only bundle with rollup / webpack if configs exists for each re…
Browse files Browse the repository at this point in the history
…psective bundler.
  • Loading branch information
treshugart committed Oct 15, 2016
1 parent 9dd8e2c commit 6fe9f37
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions bin/sk-bundle
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/sh

rm -rf dist/
./node_modules/rollup/bin/rollup --config "$@"
./node_modules/rollup/bin/rollup --config --min "$@"
./node_modules/webpack/bin/webpack.js --config webpack.config.js

if [ -f ./rollup.config.js ];
then
./node_modules/rollup/bin/rollup --config rollup.config.js "$@"
./node_modules/rollup/bin/rollup --config rollup.config.js --min "$@"
fi

if [ -f ./webpack.config.js ];
then
./node_modules/webpack/bin/webpack.js --config webpack.config.js "$@"
fi

0 comments on commit 6fe9f37

Please sign in to comment.