lavyun / postcss-path-replace

The postcss plugin, what can replace resource path in css.
2 stars 0 forks source link

broke data:uri #1

Closed cssfish closed 4 years ago

cssfish commented 5 years ago

hi! nice plugin, thank you. But today it broken data:uri (img) in css.

options:

// paths to root
require("postcss-path-replace")({
    publicPath: "../i",
    matched: "../../i",
    mode: "replace"
}),

part of input data:uri in css:

/9tT9//oTd9/f3/wK8v7+DH/

and the same part after plugin:

/9tT9//oT../wK8v7+DH/
cssfish commented 5 years ago

sorry, wrong options. thats right:

// paths to root require("postcss-path-replace")({ publicPath: "../", matched: "../../", mode: "replace" }),

lavyun commented 4 years ago

sorry, can not view your issue. I fixed this issue in v1.0.4.