1 Star 0 Fork 12

guyuewuren/Blog-WEB

forked from yanyunfeng/Blog-WEB 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.ts 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
// https://nuxt.com/docs/api/configuration/nuxt-config
import prismjs from 'vite-plugin-prismjs'
export default defineNuxtConfig({
app: {
head: {
htmlAttrs: {
lang: 'zh-CN'
},
script: [
{ src: '/scripts/three.min.js', tagPosition: 'bodyClose' },
{ src: '/scripts/vanta.birds.min.js', tagPosition: 'bodyClose' },
// 下面是百度统计js挂载
// { src: '/scripts/baidu.count.js', tagPosition: 'bodyClose' }
],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
// 下面两个分别是百度和谷歌的站长验证
// { name: 'google-site-verification', content: 'JowYQuWqC35V3BLZxyThd6D6HuRquWM7AeyGMTm4LwY' },
// { name: 'baidu-site-verification', content: 'codeva-60SrpolTOU' }
]
}
},
css: [
'@/assets/styles/_font.css',
'@/assets/styles/_reset.css',
'@/assets/styles/header-footer.css'
],
devtools: { enabled: true },
devServer: {
port: 5000
},
nitro: {
routeRules: {
'/api/**': {
proxy: 'http://localhost:3000/**'
}
}
},
vite: {
plugins: [
prismjs({
languages: [
'css',
'sass',
'scss',
'javascript',
'html',
'swift',
'xml',
'typescript',
'dart',
'csharp',
'json',
'sql',
'bash',
'md',
'nginx',
'cpp',
'java'
],
plugins: ['toolbar', 'show-language', 'copy-to-clipboard'],
theme: 'tomorrow',
css: true
})
]
},
experimental: {
externalVue: false,
inlineSSRStyles: false
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bangshang/blog-web.git
git@gitee.com:bangshang/blog-web.git
bangshang
blog-web
Blog-WEB
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385