This commit is contained in:
Gregory Schier 2016-08-23 12:30:06 -07:00
parent f2174868cc
commit 23558ba682

View File

@ -5,12 +5,11 @@ set -e
BUILD_DIR='./build'
say "Starting build"
echo "-- REMOVING DIST FOLDER --"
rm -r "$BUILD_DIR"
echo "-- BUILDING PRODUCTION APP --"
cross-env NODE_ENV=production node -r babel-register webpack --config ./webpack/webpack.config.production.js
cross-env NODE_ENV=production node -r babel-register ./node_modules/.bin/webpack --config ./webpack/webpack.config.production.js
echo "-- COPYING REMAINING FILES --"
@ -29,4 +28,3 @@ cd "$BUILD_DIR"/
cross-env NODE_ENV=production npm install
echo "-- BUILD COMPLETE --"
say "Build complete"