Remove TTF fonts
This commit is contained in:
parent
494dbc4cf5
commit
f5de115534
File diff suppressed because one or more lines are too long
|
@ -64,13 +64,6 @@ function fonts() {
|
||||||
return gulp.src('src/font/*(*.woff|*.woff2)').pipe(gulp.dest('dist/font'));
|
return gulp.src('src/font/*(*.woff|*.woff2)').pipe(gulp.dest('dist/font'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function compressTTF() {
|
|
||||||
return gulp
|
|
||||||
.src(['src/font/*.ttf'])
|
|
||||||
.pipe(brotli({ quality: 11 }))
|
|
||||||
.pipe(gulp.dest('dist/font'));
|
|
||||||
}
|
|
||||||
|
|
||||||
function compress() {
|
function compress() {
|
||||||
return gulp
|
return gulp
|
||||||
.src(['dist/!(*.toml)'])
|
.src(['dist/!(*.toml)'])
|
||||||
|
@ -127,7 +120,7 @@ function serve() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const assets = gulp.parallel(js, config, fonts, compressTTF);
|
const assets = gulp.parallel(js, config, fonts);
|
||||||
|
|
||||||
const build = gulp.series(clean, assets, compress, cleanup, bindata);
|
const build = gulp.series(clean, assets, compress, cleanup, bindata);
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'fontello';
|
font-family: 'fontello';
|
||||||
src: url('/font/fontello.woff2?48901973') format('woff2'),
|
src: url('/font/fontello.woff2?48901973') format('woff2'),
|
||||||
url('/font/fontello.woff?48901973') format('woff'),
|
url('/font/fontello.woff?48901973') format('woff');
|
||||||
url('/font/fontello.ttf?48901973') format('truetype');
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Montserrat-Regular'),
|
src: local('Montserrat-Regular'),
|
||||||
url(/font/Montserrat-Regular.woff2) format('woff2'),
|
url(/font/Montserrat-Regular.woff2) format('woff2'),
|
||||||
url(/font/Montserrat-Regular.woff) format('woff'),
|
url(/font/Montserrat-Regular.woff) format('woff');
|
||||||
url(/font/Montserrat-Regular.ttf) format('truetype');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -14,8 +13,7 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local('Montserrat-Bold'),
|
src: local('Montserrat-Bold'),
|
||||||
url(/font/Montserrat-Bold.woff2) format('woff2'),
|
url(/font/Montserrat-Bold.woff2) format('woff2'),
|
||||||
url(/font/Montserrat-Bold.woff) format('woff'),
|
url(/font/Montserrat-Bold.woff) format('woff');
|
||||||
url(/font/Montserrat-Bold.ttf) format('truetype');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -24,8 +22,7 @@
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Roboto Mono'), local('RobotoMono-Regular'),
|
src: local('Roboto Mono'), local('RobotoMono-Regular'),
|
||||||
url(/font/RobotoMono-Regular.woff2) format('woff2'),
|
url(/font/RobotoMono-Regular.woff2) format('woff2'),
|
||||||
url(/font/RobotoMono-Regular.woff) format('woff'),
|
url(/font/RobotoMono-Regular.woff) format('woff');
|
||||||
url(/font/RobotoMono-Regular.ttf) format('truetype');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -34,6 +31,5 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local('Roboto Mono Bold'), local('RobotoMono-Bold'),
|
src: local('Roboto Mono Bold'), local('RobotoMono-Bold'),
|
||||||
url(/font/RobotoMono-Bold.woff2) format('woff2'),
|
url(/font/RobotoMono-Bold.woff2) format('woff2'),
|
||||||
url(/font/RobotoMono-Bold.woff) format('woff'),
|
url(/font/RobotoMono-Bold.woff) format('woff');
|
||||||
url(/font/RobotoMono-Bold.ttf) format('truetype');
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue