1 | #!/usr/bin/env bash
|
2 |
|
3 | array=("production" "staging")
|
4 |
|
5 | if [[ ${array[@]} =~ "$NX_TASK_TARGET_CONFIGURATION" ]]
|
6 | then
|
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
|
13 | else
|
14 | echo "Building DEVELOPMENT UMDs for $NX_TASK_TARGET_PROJECT"
|
15 | npx webpack
|
16 | fi
|
17 |
|