middleware API parameter now also accepts strings similar to -middleware.Add -middleware parameter to use external middlewares.spdy) -no-css-inject to reload page on css change instead of injecting the changes Dependencies updated to get rid of vulnerabilities in deps -https-module=MODULE_NAME to specify custom HTTPS module (e.g.If a file ~/.live-server.json exists it will be loaded and used as default options for live-server on the command line. -version | -v - display version and exit.-help | -h - display terse usage hint and exit.-proxy=ROUTE:URL - proxy all requests for ROUTE to URL.-https-module=MODULE_NAME - Custom HTTPS module (e.g.-https=PATH - PATH to a HTTPS configuration module.-cors - Enables CORS for any origin (reflects request origin, requests with credentials are supported).-htpasswd=PATH - Enables http-auth expecting htpasswd file located at PATH.-wait=MILLISECONDS - (default 100ms) wait for all changes, before reloading.-spa - translate requests from /abc to /#/abc (handy for Single Page Apps).-mount=ROUTE:PATH - serve the paths contents under the defined route (multiple definitions possible).-entry-file=PATH - serve this file (server root relative) in place of missing files (useful for single page apps). js file exporting a middleware function to add can be a name without path nor extension to reference bundled middlewares in middleware folder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |