bundle Font Awesome

This commit is contained in:
Pig Fang 2022-10-08 15:58:14 +08:00
parent f1c7845b8d
commit fa90b96682
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
2 changed files with 1 additions and 2 deletions

View File

@ -6,13 +6,11 @@
<meta name="keywords" content="{{ seo.keywords }}">
<meta name="description" content="{{ seo.description }}">
{{ seo.extra|striptags('<meta>')|raw }}
<link rel="preconnect" href="https://unpkg.com/" crossorigin>
{% if custom_cdn_host %}
<link rel="preconnect" href="{{ custom_cdn_host }}" id="cdn-host" crossorigin>
{% endif %}
<script id="blessing-globals" type="application/json">{{ blessing|json_encode|raw }}</script>
<script src="{{ url('/meta.js') }}"></script>
<link rel="stylesheet" href="https://unpkg.com/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" crossorigin>
{{ include('assets.style', ignore_missing = true) }}
{% for link in links %}
<link{% for attribute, value in link %} {{ attribute }}="{{ value|raw }}"{% endfor %}>

View File

@ -32,6 +32,7 @@ export default function (env?: Env): webpack.Configuration[] {
'admin-lte/dist/css/alt/adminlte.core.min.css',
'admin-lte/dist/css/alt/adminlte.pages.min.css',
'admin-lte/dist/css/alt/adminlte.light.min.css',
'@fortawesome/fontawesome-free/css/all.min.css',
],
home: '@/scripts/homePage.ts',
'home-css': '@/styles/home.css',