Fix build (#188)

* fix

* fix
This commit is contained in:
Sung Won Cho 2019-05-23 22:58:58 +10:00 committed by GitHub
commit 8a30723b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,7 @@ set -eux
basePath="$GOPATH/src/github.com/dnote/dnote"
standalone=${STANDALONE:-false}
isTest=${IS_TEST:-false}
rm -rf "$basePath/web/public"
mkdir -p "$basePath/web/public/dist"
@ -18,6 +19,7 @@ pushd "$basePath/web"
--colors\
--display-error-details\
--env.standalone="$standalone"\
--env.isTest="$isTest"\
--config "$basePath"/web/webpack/prod.config.js
NODE_ENV=PRODUCTION \

View file

@ -18,5 +18,6 @@ appPath="$basePath"/web
"$appPath"/node_modules/.bin/webpack-dev-server\
--env.standalone="$STANDALONE"\
--env.isTest="$IS_TEST"\
--config "$appPath"/webpack/dev.config.js
)

View file

@ -48,9 +48,9 @@ module.exports = ({
let stripePublicKey;
if (test) {
stripePublicKey = 'pk_live_xvouPZFPDDBSIyMUSLZwkXfR';
} else {
stripePublicKey = 'pk_test_5926f65DQoIilZeNOiKydfoN';
} else {
stripePublicKey = 'pk_live_xvouPZFPDDBSIyMUSLZwkXfR';
}
const compileTimeConstantForMinification = {