@nrwl/web:file-server
Serve a web application from a folder.
Options can be configured in project.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Options
buildTarget
Target which builds the application.
host
localhost
Host to listen on.
maxParallel
Max number of parallel jobs.
parallel
true
Build the target in parallel.
port
4200
Port to listen on.
proxyUrl
URL to proxy unhandled requests to.
ssl
false
Serve using HTTPS
.
sslKey
SSL key to use for serving HTTPS
.
sslCert
SSL certificate to use for serving HTTPS
.
spa
false
Redirect 404 errors to index.html (useful for SPA's)
watch
true
Watch for file changes.