mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Icons): adjust CDN url (#8048)
This commit is contained in:
parent
f13fa387e1
commit
94b9e3981c
@ -50,7 +50,7 @@ function font() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function encodeWoff2(done) {
|
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 srcFile = join(srcDir, 'index.less');
|
||||||
const woff2Base64 = fs.readFileSync(`../src/${fontName}.woff2`, 'base64');
|
const woff2Base64 = fs.readFileSync(`../src/${fontName}.woff2`, 'base64');
|
||||||
const woff2DataUrl = `data:font/ttf;base64,${woff2Base64}`;
|
const woff2DataUrl = `data:font/ttf;base64,${woff2Base64}`;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
font-family: '<%= fontName %>';
|
font-family: '<%= fontName %>';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: auto;
|
font-display: auto;
|
||||||
src: url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
|
src: url('https://b.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
|
||||||
url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
|
url('https://b.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
|
||||||
url('https://img01.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
|
url('https://b.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -5,9 +5,9 @@
|
|||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: auto;
|
font-display: auto;
|
||||||
src: url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff2') format('woff2'),
|
src: url('https://b.yzcdn.cn/vant/vant-icon-f463a9.woff2') format('woff2'),
|
||||||
url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.woff') format('woff'),
|
url('https://b.yzcdn.cn/vant/vant-icon-f463a9.woff') format('woff'),
|
||||||
url('https://img01.yzcdn.cn/vant/vant-icon-f463a9.ttf') format('truetype');
|
url('https://b.yzcdn.cn/vant/vant-icon-f463a9.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user