fix(Icons): fix cdn url

This commit is contained in:
chenjiahan
2021-01-26 11:53:07 +08:00
parent cb8a8e64e4
commit 12df0d09de
4 changed files with 9 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ function font() {
}
function encodeWoff2(done) {
const cdnPath = `https://img.yzcdn.cn/vant/${fontName}.woff2`;
const cdnPath = `https://img01.yzcdn.cn/vant/${fontName}.woff2`;
const srcFile = join(srcDir, 'index.less');
const woff2Base64 = fs.readFileSync(`../src/${fontName}.woff2`, 'base64');
const woff2DataUrl = `data:font/ttf;base64,${woff2Base64}`;