chore(Icons): adjust CDN url (#8048)

This commit is contained in:
neverland 2021-01-31 18:29:32 +08:00 committed by GitHub
parent f13fa387e1
commit 94b9e3981c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -50,7 +50,7 @@ function font() {
}
function encodeWoff2(done) {
const cdnPath = `https://img01.yzcdn.cn/vant/${fontName}.woff2`;
const cdnPath = `https://b.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}`;

View File

@ -5,9 +5,9 @@
font-family: '<%= fontName %>';
font-style: normal;
font-display: auto;
src: url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
url('https://img01.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
src: url('https://b.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
url('https://b.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
url('https://b.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
}
.van-icon {

File diff suppressed because one or more lines are too long

View File

@ -5,9 +5,9 @@
font-family: 'vant-icon';
font-style: normal;
font-display: auto;
src: url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff2') format('woff2'),
url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff') format('woff'),
url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.ttf') format('truetype');
src: url('https://b.yzcdn.cn/vant/vant-icon-f463a9.woff2') format('woff2'),
url('https://b.yzcdn.cn/vant/vant-icon-f463a9.woff') format('woff'),
url('https://b.yzcdn.cn/vant/vant-icon-f463a9.ttf') format('truetype');
}
.van-icon {