在一个 skyline 和 webview 的混合项目里,如果 webview 页面的 wxss 含有 unicode 字符,会导致工具编译不通过,声明 skyline 后编译恢复正常。
案例:
.test::before {
position: relative;
content: "\2713";
}
会得到错误:
./pkg/tool/pages/danzhao/exercise.wxss(1:1): unexpected `\` at pos 1(env: Windows,mp,1.06.2503262; lib: 3.8.0)
如果换成unicode 字符:
.test::before {
position: relative;
content: "✓";
}
会报错
./pkg/tool/pages/danzhao/exercise.wxss(1:1): unexpected `?` at pos 1(env: Windows,mp,1.06.2503262; lib: 3.8.0)