mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Use only woff and woff2
This commit is contained in:
parent
933617503e
commit
154d85e197
@ -10,7 +10,7 @@ gulp.task('copy-img', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('copy-font', () => {
|
gulp.task('copy-font', () => {
|
||||||
return gulp.src('node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.*')
|
return gulp.src('node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff**')
|
||||||
.pipe(gulp.dest('public/webfonts'));
|
.pipe(gulp.dest('public/webfonts'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
@import "../../node_modules/@fortawesome/fontawesome-free/less/fontawesome.less";
|
@import "../../node_modules/@fortawesome/fontawesome-free/less/fontawesome.less";
|
||||||
@import "../../node_modules/@fortawesome/fontawesome-free/less/solid.less";
|
@import "../../node_modules/@fortawesome/fontawesome-free/less/solid.less";
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
src: url('@{fa-font-path}/fa-solid-900.woff2');
|
||||||
|
src: url('@{fa-font-path}/fa-solid-900.woff2') format('woff2'),
|
||||||
|
url('@{fa-font-path}/fa-solid-900.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
// Item cards
|
// Item cards
|
||||||
.item .uk-card {
|
.item .uk-card {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -35,9 +35,6 @@ def register_mime_types
|
|||||||
# FontAwesome fonts
|
# FontAwesome fonts
|
||||||
".woff" => "font/woff",
|
".woff" => "font/woff",
|
||||||
".woff2" => "font/woff2",
|
".woff2" => "font/woff2",
|
||||||
".eot" => "application/vnd.ms-fontobject",
|
|
||||||
".ttf" => "font/ttf",
|
|
||||||
".svg" => "image/svg+xml",
|
|
||||||
}.each do |k, v|
|
}.each do |k, v|
|
||||||
MIME.register k, v
|
MIME.register k, v
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user