1 Star 0 Fork 9

lzs9987/nuxtjs高仿掘金

forked from 舜岳/nuxtjs高仿掘金 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nuxt.config.js 3.17 KB
一键复制 编辑 原始数据 按行查看 历史
ChanWahFung 提交于 2020-07-19 23:14 . chore
module.exports = {
mode: 'universal',
/*
** Server configuration
*/
server: {
port: 8000,
host: '127.0.0.1'
},
/*
** Environment variable configuration
*/
env: {
baseUrl: 'http://127.0.0.1:8000'
},
/*
** Router configuration
*/
router: {
middleware: ['auth', 'i18n'],
extendRoutes (routes, resolve) {
routes.push({
path: '/',
redirect: {
name: 'timeline-title'
}
})
}
},
/*
** Headers of the page
*/
head: {
title: '掘金',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no,viewport-fit=cover' },
{ name: 'referrer', content: 'never'},
{ hid: 'keywords', name: 'keywords', content: '掘金,稀土,Vue.js,微信小程序,Kotlin,RxJava,React Native,Wireshark,敏捷开发,Bootstrap,OKHttp,正则表达式,WebGL,Webpack,Docker,MVVM'},
{ hid: 'description', name: 'description', content: '掘金是一个帮助开发者成长的社区,是给开发者用的 Hacker News,给设计师用的 Designer News,和给产品经理用的 Medium。掘金的技术文章由稀土上聚集的技术大牛和极客共同编辑为你筛选出最优质的干货,其中包括:Android、iOS、前端、后端等方面的内容。用户每天都可以在这里找到技术世界的头条内容。与此同时,掘金内还有沸点、掘金翻译计划、线下活动、专栏文章等内容。即使你是 GitHub、StackOverflow、开源中国的用户,我们相信你也可以在这里有所收获。'}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: '//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/styles/atom-one-light.min.css' },
],
script: [
{ src: '//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/highlight.min.js' }
]
},
/*
** Customize the progress-bar color
*/
loading: {
color: '#007fff'
},
/*
** Global CSS
*/
css: [
'~/assets/css/reset.css',
'~/assets/css/page-transition.css',
'~/assets/scss/global.scss'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios.js',
'~/plugins/request.js',
'~/plugins/api.js',
'~/plugins/vue-global.js',
'~/plugins/i18n.js'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/style-resources',
'cookie-universal-nuxt'
],
styleResources: {
scss: [
'~/assets/scss/variable.scss'
]
},
serverMiddleware: [
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
babel: {
plugins: [
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
],
},
extend (config, ctx) {
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/asccccww/nuxt-juejin-project.git
git@gitee.com:asccccww/nuxt-juejin-project.git
asccccww
nuxt-juejin-project
nuxtjs高仿掘金
master

搜索帮助