webpack 命令
--content-base <file/directory/url/port>
:内容的路径。
--quiet
: 在控制台不输出任何内容
--no-info
: 抑制无聊的信息
--colors
: 为输出加一些颜色
--no-colors
: don’t use colors in the output.
--compress
: 使用gzip压缩
--host <hostname/ip>
: hostname or IP. 0.0.0.0
binds to all hosts.主机名
--port <number>
: port.端口号
--inline
:嵌入WebPACK开发服务器运行时在包。
--hot
: adds the HotModuleReplacementPlugin
and switch the server to hot mode. Note: make sure you don’t addHotModuleReplacementPlugin
twice.
--hot --inline
also adds the webpack/hot/dev-server
entry.
--lazy
:对require 不监视,编译 (cannot be combined with --hot
).
--https
: 为开发服务器通过HTTPS协议WebPACK。包括服务请求时使用的自签名证书。
--cert
, --cacert
, --key
: 路径证书文件。
--open
: URL在默认浏览器打开(WebPACK版本> 2)。
--history-api-fallback
: 支持历史版本的API.
原文地址:https://www.cnblogs.com/lcddjm/p/5758916.html