mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-30 15:58:11 +01:00
Added webpack loading mode for fonts.
This commit is contained in:
parent
40747b463c
commit
04a51bc8c9
@ -14,19 +14,19 @@ export default function LanguageButton() {
|
||||
|
||||
switch (locale) {
|
||||
case 'zh-CN':
|
||||
import('@fontsource/noto-sans-sc/400.css');
|
||||
import('@fontsource/noto-sans-sc/500.css');
|
||||
import('@fontsource/noto-sans-sc/700.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-sc/400.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-sc/500.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-sc/700.css');
|
||||
break;
|
||||
case 'zh-TW':
|
||||
import('@fontsource/noto-sans-tc/400.css');
|
||||
import('@fontsource/noto-sans-tc/500.css');
|
||||
import('@fontsource/noto-sans-tc/700.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-tc/400.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-tc/500.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-tc/700.css');
|
||||
break;
|
||||
case 'ja-JP':
|
||||
import('@fontsource/noto-sans-jp/400.css');
|
||||
import('@fontsource/noto-sans-jp/500.css');
|
||||
import('@fontsource/noto-sans-jp/700.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-jp/400.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-jp/500.css');
|
||||
import(/* webpackMode: "eager" */ '@fontsource/noto-sans-jp/700.css');
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user