zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    20180530
    vue路由配置出错,导致页面跳转会有闪屏问题
    20180528
    vuecli+ivew项目搭建
    centos6安装mysql
    华为云服务ESC
    centos6安装nginx
    国产操作系统aarch64编译filebeat
    Python常见问题
    Git
  • 原文地址:https://www.cnblogs.com/lcddjm/p/5758916.html
Copyright © 2011-2022 走看看