simet

求教一个 webpack 问题,在合并 css 的时候,图片 url 路径被转换了

  •  
  •   simet · Feb 29, 2016 · 4422 views
    This topic created in 3755 days ago, the information mentioned may be changed or developed.

    img.css 用了一个相对路径

    .img {
        background: url('../images/panel.jpg')
    }
    

    被合并到主文件,成了这样

    .img {
        background: url(images/panel.jpg)
    }
    

    请问这个有什么解决的方法吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:25 · PVG 12:25 · LAX 21:25 · JFK 00:25
    ♥ Do have faith in what you're doing.