This list provides a description of all of the options for the CLI, dev server and dev middleware. See their respective pages for the exact options each of them support.
Type | Name | Description |
---|---|---|
String|Object |
config |
Pass a Rollup configuration file. By default it will look for rollup.config.js but can be specified otherwise. If object is supported, can receive Rollup config object. |
String |
rc |
Pass a Nollup configuration file. By default it will look for one of .nolluprc , .nolluprc.js . |
String |
contentBase |
Folder to serve static content from. Typically the content would contain additional resources like images. By default it will be looking in ./ . |
Boolean |
hot |
Enable Hot Module Replacement. Default is false . |
Number |
port |
Port number to run server on. Default is 8080 . |
Boolean|String |
historyApiFallback |
If set to true, it will fallback to index.html if accessing a file that doesn't exist. You can pass a string to fallback to a different file. Default is false . |
String |
publicPath |
All generated files will be served from this URL. Default is / |
String |
environment |
Pass environment variables that are set to process.ENV . |
Object |
proxy |
Object keys are paths to match. Value can be the domain to proxy to. "api": "http://localhost:8080" will have a request such as /api/todos proxy to http://localhost:8080/api/todos . In addition the value can be an object with host key for domain and any additional configurations that express-http-proxy consumes. "api": {host: 'http://localhost:8080", changeOrigin: true} will have a request such as /api/todos proxy to http://localhost:8080/api/todos with changeOrigin flag set to true. |
Boolean |
verbose |
Enable verbose logging. Default is false . |
Object |
headers |
Provide custom headers for Express server responses. Useful to set cors headers for the server. |
String |
hmrHost |
Host to connect to for HMR. Default is window.location.host . Useful for Electron environments. |
String |
host |
Specify the host to use. Default is localhost . Useful for allowing remote connections, eg. 0.0.0.0 |
Function |
before |
Receives Express app as argument. You can inject custom middleware before Nollup dev middleware. |
Function |
after |
Receives Express app as argument. You can inject custom middleware after Nollup dev middleware. |
Boolean |
https |
Enable https. Default is false . Requires key and cert to be set |
String |
key |
Path to the private key file to use with https. |
String |
cert |
Path to the certificate file to use with https. |
String|Boolean |
liveBindings |
Enable live-bindings. Default is false . Supports "with-scope" or "reference" . If set to true , it will use "reference" . See Live Bindings for more information. |
String|String[] |
configPlugin |
Parse the config file using the provide plugin. Can pass array of plugins as well. |