Warning: codebase going through major changes.
Package static assets in npm. Support client and server.
process.env.STATIC_ROOT
: this is where your static files will live at runtimestaticRoot
inpackage.json
: this is where you put your static files. they'll be available at the root above
- run
collect-static mymodule builddir/
and uploadbuilddir/
tohttp://mycdn.com/statics/
- run your app with
STATIC_ROOT=http://mycdn.com/statics/
(trailing slash required)- if using browserify, use the
envify
transform
- if using browserify, use the