img2x-loader
v0.0.5
Published
## 功能介绍 - 在样式文件引用图片的链接后增加?__2x后,在打包编译的时候会自动修改css,增加background-image:image-set(url(***.***) 1x, url(***@2x.***) 2x)引入2倍图(前提是图片存在)
Downloads
10
Readme
一个自己用的loader
功能介绍
- 在样式文件引用图片的链接后增加?__2x后,在打包编译的时候会自动修改css,增加background-image:image-set(url(.) 1x, url(@2x.) 2x)引入2倍图(前提是图片存在)
使用方法
- 在所有的css、less、scss等样式loader的第一个处理(也就是放在最后一个,引入即可)