postcss-assets icon indicating copy to clipboard operation
postcss-assets copied to clipboard

about the baseUrl

Open jpuncle opened this issue 8 years ago • 1 comments

My config:

option: {
  basePath: 'src/',
  baseUrl: '//x.autoimg.cn/www/'
}

My style:

html {
  background: resolve("../img/bg.png");
}

My output:

html {
  background: url('/x.autoimg.cn/www/index/img/bg.png');
}

Expected:

html {
  background: url('//x.autoimg.cn/www/index/img/bg.png');
}

jpuncle avatar Nov 29 '16 01:11 jpuncle

I come across this issue too.

hendiko avatar Sep 05 '17 09:09 hendiko