2 Star 1 Fork 0

yanhongyun / nuxt-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nuxt.config.js 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
yanhongyun 提交于 2021-10-07 12:41 . 实现大部分功能
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'nuxt-blog',
htmlAttrs: {
lang: 'en'
},
meta: [{
charset: 'utf-8'
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
hid: 'description',
name: 'description',
content: ''
},
{
name: 'format-detection',
content: 'telephone=no'
}
],
link: [{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico'
}]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'element-ui/lib/theme-chalk/index.css',
'assets/css/transition.css',
'quill/dist/quill.snow.css',
'quill/dist/quill.bubble.css',
'quill/dist/quill.core.css',
],
// 自定义loading效果
// loading:{color: '#4444'},
//loading: '~/components/Loading.vue',
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'@/plugins/element-ui',
'@/plugins/router',
'@/plugins/axios',
{
src: '@/plugins/vue-quill-editor',
mode: 'client'
},
'@/plugins/api',
'@/plugins/minins'
],
routers: {
middleware: 'auth'
},
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
'@nuxtjs/proxy',
'cookie-universal-nuxt'
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
baseURL: 'http://127.0.0.1',
proxy: true,
},
proxy: {
'/html/': {
target: 'http://127.0.0.1:8081',
changeOrigin: true,
pathRewrite: {}
},
'/api/': {
target: 'http://127.0.0.1:8080',
changeOrigin: true,
pathRewrite: {}
}
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: [/^element-ui/],
},
watchQuery: true
}
JavaScript
1
https://gitee.com/yanhongyun/nuxt-blog.git
git@gitee.com:yanhongyun/nuxt-blog.git
yanhongyun
nuxt-blog
nuxt-blog
master

搜索帮助