V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dadagogogo
V2EX  ›  程序员

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

  •  
  •   dadagogogo · 2021-04-27 01:17:02 +08:00 · 1008 次点击
    这是一个创建于 1085 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    xuanbg
        1
    xuanbg  
       2021-04-27 07:00:44 +08:00
    环境变量啊
    joesonw
        2
    joesonw  
       2021-04-27 09:24:30 +08:00 via iPhone
    多一个 js,或者 html 里。挂 window 上。
    lc1450
        3
    lc1450  
       2021-04-27 18:39:47 +08:00 via Android
    在 index.html 里面加 script 定义全菊变亮,东西多就单挂个 js 文件
    among
        4
    among  
       2021-04-27 23:02:12 +08:00
    前端不该写死吧,nginx 里面配置
    dadagogogo
        5
    dadagogogo  
    OP
       2021-04-28 02:14:33 +08:00
    @among 单单 nginx 能搞定?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   6052 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.