Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Feb 9, 2023
1 parent f7bd4a6 commit 738f3b4
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 272 deletions.
91 changes: 45 additions & 46 deletions nuxt.config.ts
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,
},
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"bumpp": "^8.2.1",
"execa": "^6.1.0",
"file-computed": "^0.6.2",
"nuxt": "^3.1.2",
"nuxt": "^3.2.0",
"nuxt3-intelligence": "^0.1.1",
"serve": "^14.2.0",
"sitemap": "^7.1.1",
Expand Down
Loading

0 comments on commit 738f3b4

Please sign in to comment.