mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 05:33:18 +03:30
fix(fonts): localize fonts and icons to remove CDN dependencies
- install @mdi/font and @fortawesome/fontawesome-free - move required font files to public/fonts (roboto, mdi, fontawesome) - load fonts via public/index.html instead of CDN - remove font imports from main.js
This commit is contained in:
+13
-7
@@ -1,12 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
|
||||
<!-- Local Fonts -->
|
||||
<link rel="stylesheet" href="/fonts/roboto/roboto.css">
|
||||
<link rel="stylesheet" href="/fonts/mdi/materialdesignicons.css">
|
||||
<link rel="stylesheet" href="/fonts/fontawesome/css/all.css">
|
||||
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
|
||||
Reference in New Issue
Block a user