-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
34 lines (34 loc) · 1.6 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
typescript: {
includeWorkspace: true
},
runtimeConfig: {
githubToken: '',
},
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/color-mode'],
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode'
},
app: {
head: {
link: [
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
// { rel: 'preload', as: 'style', href: 'https://fonts.googleapis.cn/css2?family=Noto+Serif+SC:wght@300;500;600;700&display=swap' },
{ rel: 'preload', as: 'style', href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@300;500;600;700&display=swap' },
// { rel: 'stylesheet', href: 'https://fonts.googleapis.cn/css2?family=Noto+Serif+SC:wght@300;500;600;700&display=swap', media: 'print', onload: "this.media='all'" },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@300;500;600;700&display=swap', media: 'print', onload: 'this.media=\'all\'' },
],
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
}
}
})