pojiro / teamgenik_pub_samples

2 stars 2 forks source link

tgweb 側で fontawesome を供給する必要がある? #11

Closed pojiro closed 1 year ago

pojiro commented 1 year ago

tgweb へ切り替え以前は以下のように fontawesome を利用していました。

<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 href="../../dist/tailwind.css" rel="stylesheet" />
    <title>kenko</title>
    <!-- fontawesome -->
    <link
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
      rel="stylesheet"
    />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
  </head>

tgweb のドキュメント, https://github.com/oiax/tgweb#note, によると

A element that refers to another stylesheet cannot be inserted within the head element.

The Githubissues.

  • Githubissues is a development platform for aggregating issues.