Installation
project:
npm install react-bundle-builder --save-dev
global:
npm install react-bundle-builder -g
Commands
t, test Test App
-w, --watch Enable watching files
b, build Build App
s, serve Serve App
-H, --hmr Use Hot Module Reload(experimental)
-o, --open Open browser
-i, --iframe Open iframe in browser
-l, --lint Use linter
u, upload Upload App to S3
Configuration
builder.config.coffee
in current working directory
moduleexports = ->input: __dirname 'src'output: __dirname 'dist'alias:AliasTest: __dirname 'alias_test'variables: 'APP_ENV'
.env.development
or pass BUILDER_ENV to use specific .env.%BUILDER_ENV% file
AWS_ACCESS_KEY_ID=AWS_SECRET_ACCESS_KEY=AWS_S3_BUCKET=AWS_S3_BUCKET_KEY=/AWS_S3_REGION=us-west-1APP_ENV=development