UNPKG

647 Bapplication/x-shView Raw
1#!/usr/bin/env bash
2
3array=("production" "staging")
4
5if [[ ${array[@]} =~ "$NX_TASK_TARGET_CONFIGURATION" ]]
6then
7 echo "Building PRODUCTION UMDs for $NX_TASK_TARGET_PROJECT"
8 npx webpack --env production --env minify --env styles --env entry=./src/main-styles.ts &
9 npx webpack --env production --env styles --env entry=./src/main-styles.ts &
10 npx webpack --env production --env minify --env styles=false --env entry=./src/main.ts &
11 npx webpack --env production --env styles=false --env entry=./src/main.ts &
12 wait
13else
14 echo "Building DEVELOPMENT UMDs for $NX_TASK_TARGET_PROJECT"
15 npx webpack
16fi
17