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

webpack 怎么打包到其他目录

  •  
  •   123s · Jan 13, 2016 · 2211 views
    This topic created in 3868 days ago, the information mentioned may be changed or developed.
    webpack 真好用,花 2 个小时就可以用了。因为静态资源是分开一个域名,我怎么打包到那个静态的域名。

    服务器是 apache ,目前是这样的
    a.com
    /static

    a.res.com
    /static
    我在 a.com 开发,现在是打包在 a.com 的 static 下。有什么插件可以把它移过去 ?
    1 replies    2016-01-13 10:47:31 +08:00
    yangxiongguo
        1
    yangxiongguo  
       Jan 13, 2016
    copy-webpack-plugin 这个?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1203 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:17 · PVG 01:17 · LAX 10:17 · JFK 13:17
    ♥ Do have faith in what you're doing.