aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-09 02:10:44 +0800
committerGitHub <noreply@github.com>2018-11-09 02:10:44 +0800
commitadcfe51190c8ca5cd4d11e49eb7e100c80fbd16c (patch)
tree491fe8503a0475ffb1b18fdb2d5b68fc1adb52c9 /packages
parentf6abc007ffb249e4bbf85b8a7a77309d43e0a147 (diff)
parent370452238f0cb221ee80f71939a7049ea3de7add (diff)
downloaddexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.gz
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.bz2
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.lz
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.xz
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.zst
dexon-sol-tools-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.zip
Merge pull request #1226 from 0xProject/fix/website/build-time
[website] Turn off production flag when building locally
Diffstat (limited to 'packages')
-rw-r--r--packages/website/package.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/website/package.json b/packages/website/package.json
index efb97d309..dd14d4b17 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -7,14 +7,15 @@
"private": true,
"description": "Website and 0x portal dapp",
"scripts": {
- "build": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
+ "build": "yarn build:dev",
+ "build:prod": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build:dev": "../../node_modules/.bin/webpack --mode development",
"clean": "shx rm -f public/bundle*",
"lint": "tslint --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
"dev": "webpack-dev-server --mode development --content-base public --https",
- "deploy_dogfood": "npm run build; aws s3 sync ./public/. s3://dogfood.0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
- "deploy_staging": "npm run build; aws s3 sync ./public/. s3://staging-0xproject --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
- "deploy_live": "DEPLOY_ROLLBAR_SOURCEMAPS=true npm run build; aws s3 sync ./public/. s3://0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js"
+ "deploy_dogfood": "npm run build:prod; aws s3 sync ./public/. s3://dogfood.0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
+ "deploy_staging": "npm run build:prod; aws s3 sync ./public/. s3://staging-0xproject --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
+ "deploy_live": "DEPLOY_ROLLBAR_SOURCEMAPS=true npm run build:prod; aws s3 sync ./public/. s3://0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js"
},
"author": "Fabio Berger",
"license": "Apache-2.0",