• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dadagogogo
V2EX  ›  程序员

在弄 devops 相关内容 前端用的 vue 想 npm 打包后能修改到 ip 和端口配置

  •  
  •   dadagogogo · Apr 27, 2021 · 1996 views
    This topic created in 2025 days ago, the information mentioned may be changed or developed.

    我现在除了想用 sed 命令去替换文本之外就每别的好方法了

    xuanbg
    xuanbg
    Apr 27, 2021
    1
    环境变量啊
    joesonw
    joesonw
    Apr 27, 2021 via iPhone
    2
    多一个 js,或者 html 里。挂 window 上。
    atx
    atx
    Apr 27, 2021 via Android
    3
    在 index.html 里面加 script 定义全菊变亮,东西多就单挂个 js 文件
    among
    among
    Apr 27, 2021
    4
    前端不该写死吧,nginx 里面配置
    dadagogogo
    dadagogogo
    OP
    Apr 28, 2021
    5
    @among 单单 nginx 能搞定?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4649 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:33 · PVG 09:33 · LAX 17:33 · JFK 20:33
    ♥ Do have faith in what you're doing.