码迷,mamicode.com
首页 > Web开发 > 详细

webpack 命令

时间:2016-08-10 22:29:32      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:

  • --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.

webpack 命令

标签:

原文地址:http://www.cnblogs.com/lcddjm/p/5758916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!