muerwre.github.io/nuxt.config.ts
2022-11-07 15:13:41 +06:00

47 lines
864 B
TypeScript

export default defineNuxtConfig({
alias: {
"~": "/<rootDir>",
},
modules: ["@nuxt/content", "@nuxtjs/color-mode"],
typescript: {
shim: false,
typeCheck: true,
},
content: {
highlight: {
theme: {
default: "github-dark",
light: "solarized-light",
},
preload: [
"shell",
"c",
"go",
"graphql",
"scss",
"shell",
"sh",
"docker",
"typescript",
"javascript",
"nginx",
"bash",
"yaml",
"sh",
],
},
},
target: "static",
css: ["@/assets/css/main.scss"],
head: {
link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }],
},
colorMode: {
preference: "dark",
classSuffix: "",
storageKey: "nuxt-color-mode",
},
app: {
buildAssetsDir: "nuxt/",
},
});