-
Notifications
You must be signed in to change notification settings - Fork 2
zygo.json
zygo.json
is the zygo server configuration file. It supports the following properties, square brackets representing defaults:
-
packageJSON
['./package.json'
]
Path to the project'spackage.json
. -
routes
JSPM path to the project'sroutes.js
, a routing configuration file. See routes.js. -
template
[template.hb]
Path to the project'stemplate.hb
, a handlebars page template. See template.hb. -
env
[development
]
Environment the zygo server runs in. Running in production enables bundling and other optimisations. -
bundlesJSON
Location of the projectsbundle.json
, a file containing bundling data populated by zygo. Automatically filled in whenzygo.bundle()
is run, one shouldn't have to use this manually. -
port
[8080
]
Port the server listens on. -
middleware
[[]
]
A string or array of strings listing middleware modules to be used by zygo-server. See middleware. -
anchors
[true
]
Whether the zygo client should wrap anchor tags as route changes rather than page refreshes. You probably want this. -
buildDir
The directory zygo builds bundles into onzygo.bundle()
call. -
defaultOptimization
[tlo
] Bundling optimization function to use by default. Options aretlo
for a three-layered bundling system, orslo
for a single-bundle system. See issue51 for a discussion of this in SystemJS. -
defaultContext
A JSON object listing context options that are set by default. Useful as a shortcut for configuring components via context. See context.