Optional addAdditional optional features to enable
Optional adminDev admin log level
XARC_ADMIN_LOG_LEVELOptional adminPort number the dev admin listens to serve its pages.
XARC_ADMIN_PORTOptional appIn dev mode, this sets the proxy forward port for the node.js app server.
If it's not defined or 0, then a randomly available port is picked every time.
0 - pick a random portAPP_PORT_FOR_PROXY, then APP_SERVER_PORT.
Optional babeloptions related to babel transpiler
Optional cwd?: stringoption for app directory if passed to loadXarcDevTasks using xrun-tasks.ts e.g: loadXarcDevTasks(null, { cwd: "/actual-dir-of-app" });
Optional host?: stringhostname to listen on for serving your application
localhostHOSTOptional httpsSet this to force https on the port you want, in case you want to serve your app
with https on a port other than 443 or 8443.
XARC_DEV_HTTPS0 and the proxy will pick a random port for https.-1 to force disable https"@remarks"
If this is set, it cannot be the same as port, which then will be
forced to be http only.
.
Optional namespace?: stringSpecify a namespace prefix for your application's JS/Style asset bundles
For example, instead of main.bundle.js, it's {ns}.main.bundle.js
This is useful if you want to be able to mix subapps from different apps on the same page, or if you want to implement a top level app shell that loads subapps from different sources and render them on the page.
Optional port?: numberport to listen on for serving your application
"@remarks"
In development, this is what the dev proxy listens on. Your app server
listens on appServerPort that the proxy forwards to.
Typical values are 3000 for HTTP or 443/8443 for HTTPS.
Default: 3000
If it's 443 or 8443, then automatically enable HTTPS and try
to also listen on 3000 or 3300 for http
Set it to 0 and the proxy will pick a random port.
Set it to -1 to disable http and use httpsPort to listen on https only.
If not set, then check env PORT
"@remarks" Regarding HTTPS:
https and http ports, set httpsPort and port.port to 443 or 8443, then dev proxy do https on that port, and
listens on something that doesn't conflict with appServerPort, which is
3000 or 3300.https is enabled, the dev proxy will always try to listen on http also..
Optional webpackoptions related to webpack
User facing options for configuring features