-
Notifications
You must be signed in to change notification settings - Fork 0
angular cli wiki serve(ng serve)
ng serve
ng serve 命令
Overview
概览
ng serve builds the application and starts a web server
ng服务构建应用程序并启动Web服务器
Options
选项:
--watch (-w) rebuild when files change
--watch(-w)文件更改时重建
--port (-p) port to serve the application on
--port(-p)端口,用于为应用程序提供服务
--host (-H) host where to listen
--host(-H)主机在哪里听
--proxy-config (-pc) proxy configuration file
--proxy-config(-pc)代理配置文件
--live-reload (-lr) flag to turn off live reloading
--live-reload(-lr)标志以关闭实时重新加载
--live-reload-client specify the URL that the live reload browser client will use
--live-reload-client指定实时重载浏览器客户端将使用的URL
--ssl flag to turn on SSL
--ssl标志以打开SSL
--ssl-key path to the SSL key
--SSL密钥的-ssl-key路径
--ssl-cert path to the SSL cert
--SSL证书的-ssl-cert路径
--open (-o) opens the app in the default browser
--open(-o)在默认浏览器中打开应用程序
--hmr use hot module reload
--hmr使用热模块重新加载
--target (-t) define the build target
--target(-t)定义构建目标
--environment (-e) defines the build environment
--environment(-e)定义构建环境
--prod flag to set build target and environment to production
--prod标志将生成目标和环境设置为生产
--dev flag to set build target and environment to development
--dev标志设置构建目标和环境到开发
--output-path (-po) path where output will be placed
--output-path(-po)将放置输出的路径
--aot flag whether to build using Ahead of Time compilation
--aot标志是否使用Ahead of Time编译进行构建
--sourcemap (-sm) output sourcemaps
--sourcemap(-sm)输出源映射
--vendor-chunk (-vb) use a separate bundle containing only vendor libraries
--vendor-chunk(-vb)使用一个只包含供应商库的单独的bundle
--base-href (-bh) base url for the application being built
--base-href(-bh)正在构建的应用程序的基本URL
--deploy-url (-d) url where files will be deployed
--deploy-url(-d)将部署文件的URL
--verbose (-v) adds more details to output logging
--verbose(-v)向输出日志记录添加更多详细信息
--progress (-pr) log progress to the console while building
--progress(-pr)日志在构建时进度到控制台
--extract-css (-ec) extract css from global styles onto css files instead of js ones
--extract-css(-ec)从全局样式提取css到css文件而不是js
--output-hashing define the output filename cache-busting hashing mode
--output-hashing定义输出文件名cache-busting哈希模式
--poll enable and define the file watching poll time period (milliseconds)
--poll启用和定义查看轮询时间周期的文件(毫秒)