generated from dishait/vuepress-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
384 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,50 @@ | ||
import { | ||
genPrerenderRoutesSync, | ||
createDefaultGenPrerenderRoutesSyncOptions | ||
} from 'nuxt3-intelligence' | ||
createDefaultGenPrerenderRoutesSyncOptions, | ||
genPrerenderRoutesSync, | ||
} from "nuxt3-intelligence"; | ||
|
||
const defaultOptions = | ||
createDefaultGenPrerenderRoutesSyncOptions() | ||
const routes = genPrerenderRoutesSync(defaultOptions) | ||
const defaultOptions = createDefaultGenPrerenderRoutesSyncOptions(); | ||
const routes = genPrerenderRoutesSync(defaultOptions); | ||
|
||
routes.push('/sitemap.xml', '/config') | ||
routes.push("/sitemap.xml", "/config"); | ||
|
||
export default defineNuxtConfig({ | ||
extends: '@nuxt-themes/docus', | ||
modules: ['@unocss/nuxt'], | ||
app: { | ||
head: { | ||
htmlAttrs: { | ||
lang: 'zh-CN' | ||
} | ||
} | ||
}, | ||
unocss: { | ||
uno: true, | ||
attributify: true | ||
}, | ||
experimental: { | ||
asyncEntry: true, // 异步入口 | ||
reactivityTransform: true // 开启响应性语法糖 | ||
}, | ||
vite: { | ||
define: { | ||
__VUE_OPTIONS_API__: false // 明确不使用 options api | ||
} | ||
}, | ||
sourcemap: false, | ||
typescript: { | ||
shim: false | ||
}, | ||
nitro: { | ||
minify: true, | ||
preset: 'deno', | ||
compressPublicAssets: { | ||
gzip: true, | ||
brotli: true | ||
}, | ||
prerender: { | ||
routes, | ||
crawlLinks: true | ||
} | ||
} | ||
}) | ||
extends: "@nuxt-themes/docus", | ||
modules: ["@unocss/nuxt"], | ||
app: { | ||
head: { | ||
htmlAttrs: { | ||
lang: "zh-CN", | ||
}, | ||
}, | ||
}, | ||
unocss: { | ||
uno: true, | ||
attributify: true, | ||
}, | ||
experimental: { | ||
asyncEntry: true, // 异步入口 | ||
reactivityTransform: true, // 开启响应性语法糖 | ||
}, | ||
vite: { | ||
define: { | ||
__VUE_OPTIONS_API__: false, // 明确不使用 options api | ||
}, | ||
}, | ||
// sourcemap: false, | ||
typescript: { | ||
shim: false, | ||
}, | ||
nitro: { | ||
minify: true, | ||
preset: "deno", | ||
compressPublicAssets: { | ||
gzip: true, | ||
brotli: true, | ||
}, | ||
prerender: { | ||
routes, | ||
crawlLinks: true, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.