mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-04 14:37:34 +00:00
Add BUILD_ENV
This commit is contained in:
parent
8283fca574
commit
384ef3396a
1 changed files with 2 additions and 3 deletions
|
|
@ -40,9 +40,8 @@ popd > /dev/null
|
|||
readonly STATIC_DIR=$OUT_DIR/static
|
||||
mkdir -p $STATIC_DIR
|
||||
|
||||
# Build main.js
|
||||
# TODO(fortuna): Have different production and development builds.
|
||||
webpack --mode=development --config=$ROOT_DIR/src/server_manager/webpack.config.js
|
||||
# Notice that we forward the build environment if defined
|
||||
webpack --config=$ROOT_DIR/src/server_manager/webpack.config.js ${BUILD_ENV:+--mode=${BUILD_ENV}}
|
||||
|
||||
# Browserify node_modules/ (just a couple of key NPMs) and app.
|
||||
# TODO(fortuna): Use polymer-webpack-loader instead.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue