simet

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

  •  
  •   simet · Feb 29, 2016 · 4437 views
    This topic created in 3763 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   ·   2344 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.