postcss sprite 插件
nodejs >= 8.0.0
$ yarn add postcss-sprite -D
baseSize
input
output
filename
revision
spritesmithOptions
filter
publicPath: string: ‘’ function
publicPath = opts => {
let { dirname, filename } = opts;
return join(dirname, filename);
};
v3.0.0 (2019-08-28)
v2.2.1 (2017-06-22)
v2.2.0 (2017-06-20)
v2.1.0 (2017-06-19)
v2.0.0 (2017-06-19)
v1.5.0 (2017-06-15)
v1.4.0 (2017-05-25)
支持移动端的 background-size 图片命名 xxx@2x.jpg xxx@3x.jpg
支持 rem 单位 设置 baseSize 参数
默认添加宽高到生成的 css 里