markdown live-server.js命令行参数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown live-server.js命令行参数相关的知识,希望对你有一定的参考价值。

[Reference](https://github.com/tapio/live-server)

	`--port=NUMBER`
   select port to use, default: PORT env var or 8080
   
   
    `--host=ADDRESS`
   select host address to bind to, default: IP env var or 0.0.0.0 ("any address")
   
   
    `--no-browser`
   suppress automatic web browser launching
   
   
    `--browser=BROWSER`
   specify browser to use instead of system default
   
   
    `--quiet | -q`
   suppress logging
   
   
    `--verbose` 
   more logging (logs all requests, shows all listening IPv4 interfaces, etc.)
   
   
    `--open=PATH`
   launch browser to PATH instead of server root
   
   
    `--watch=PATH`
   comma-separated string of paths to exclusively watch for changes (default: watch everything)
   
   
    `--ignore=PATH`
   comma-separated string of paths to ignore (anymatch-compatible definition)
   
   
    `--ignorePattern=RGXP`
   Regular expression of files to ignore (ie .*\.jade) (DEPRECATED in favor of --ignore)
   
   
    `--no-css-inject`
   reload page on CSS change, rather than injecting changed CSS
   
   
    `--middleware=PATH`
   path to .js file exporting a middleware function to add; can be a name without path nor extension to    
   reference bundled middlewares in middleware folder
   
   
    `--entry-file=PATH`
   serve this file (server root relative) in place of missing files (useful for single page apps)
   
   
    `--mount=ROUTE:PATH`
   serve the paths contents under the defined route (multiple definitions possible)
   
   
    `--spa`
	translate requests from /abc to /#/abc (handy for Single Page Apps)
    
    
    `--wait=MILLISECONDS`
    (default 100ms) wait for all changes, before reloading
    
    
    `--htpasswd=PATH`
    Enables http-auth expecting htpasswd file located at PATH
    
    
    `--cors -`
    Enables CORS for any origin (reflects request origin, requests with credentials are supported)
    
    
    `--https=PATH`
    PATH to a HTTPS configuration module
    
    
    `--https-module=MODULE_NAME`
    Custom HTTPS module (e.g. spdy)
    
    
    `--proxy=ROUTE:URL`
    proxy all requests for ROUTE to URL
    
    
    `--help | -h`
    display terse usage hint and exit
    
    
    `--version | -v`
    display version and exit```

以上是关于markdown live-server.js命令行参数的主要内容,如果未能解决你的问题,请参考以下文章

markdown 用于禁用“写入”命令的git命令的代理

markdown [Linux命令] linux命令#linux #commands

markdown [linux命令]记录常见的linux命令#linxu #md

markdown [Git命令]一个基本的git命令#git #commands

MarkDown语法, 快捷键,Dos命令

markdown [常用的bash命令]常用的bash命令有用的bash命令#bash