webpack-bundle-analyzer,webpack 命令

 2023-10-18 阅读 24 评论 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
  • --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。webpack-bundle-analyzer?包括服務請求時使用的自簽名證書。
  • --cert,?--cacert,?--key:?路徑證書文件。
  • --open:?URL在默認瀏覽器打開(WebPACK版本> 2)。webpackchunkname?
  • --history-api-fallback: 支持歷史版本的API.

轉載于:https://www.cnblogs.com/lcddjm/p/5758916.html

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/1/146951.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息