simet

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

  •  
  •   simet · Feb 29, 2016 · 4443 views
    This topic created in 3766 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   ·   951 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:49 · PVG 03:49 · LAX 12:49 · JFK 15:49
    ♥ Do have faith in what you're doing.