simet

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

  •  
  •   simet · Feb 29, 2016 · 4599 views
    This topic created in 3847 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   ·   Privacy   ·   Solana   ·   3099 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:40 · PVG 10:40 · LAX 19:40 · JFK 22:40
    ♥ Do have faith in what you're doing.