2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MonacaでFont Awesomeが豆腐になった件

Posted at

実機だとFont Awesomeのアイコンが一部表示されない。

Monacaとローカル(Nuxt)でFont Awesomeのバージョンが違うのが原因だった。

Monacaだとテンプレート用いてアプリを新規作成するとwww/main.cssに初期状態でFont Awesomeが入っている。

ただ、このバージョンが4.6.3と古いためにFont Awesome5の書き方をすると表示されない。

5.8.1をダウンロードしてきてsrc/css/以下にall.min.cssを配置し、src/css/と同階層にwebfontsディレクトリを配置した。

そして、main.jsでmain.cssをrequire()した。

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?