dnote/scripts/web/webpack-dev.sh
Sung Won Cho 6acc2936e3
Reduce bundle size (#469)
* Rename handlers to api

* Fix imports

* Fix test

* Abstract

* Fix warning

* wip

* Split session

* Pass db

* Fix test

* Fix test

* Remove payment

* Fix state

* Fix flow

* Check password when changing email

* Add test methods

* Fix timestamp

* Document

* Remove clutter

* Redirect to login

* Fix

* Fix
2020-05-22 16:30:05 +10:00

27 lines
633 B
Bash
Executable file

#!/usr/bin/env bash
set -eux
dir=$(dirname "${BASH_SOURCE[0]}")
basePath="$dir/../.."
appPath="$basePath/web"
(
cd "$appPath" &&
PUBLIC_PATH=$PUBLIC_PATH \
COMPILED_PATH=$COMPILED_PATH \
ASSET_BASE_URL=$ASSET_BASE_URL \
"$dir/setup.sh" &&
BUNDLE_BASE_URL=$BUNDLE_BASE_URL
ASSET_BASE_URL=$ASSET_BASE_URL \
COMPILED_PATH=$COMPILED_PATH \
PUBLIC_PATH=$PUBLIC_PATH \
node "$dir/placeholder.js" &&
ROOT_URL=$ROOT_URL \
VERSION="$VERSION" \
"$appPath"/node_modules/.bin/webpack-dev-server \
--env.standalone="$STANDALONE" \
--host "$WEBPACK_HOST" \
--config "$appPath"/webpack/dev.config.js
)