1 Star 4 Fork 1

MoonAndPoetry / apollo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nuxt.config.js 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
MoonAndPoetry 提交于 2020-06-28 17:05 . 修改监听配置
export default {
mode: 'universal',
server: {
host: '0.0.0.0', // default: localhost
port: 80 // default: 3000
},
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || ''
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: ['@/static/element-ui/index.css'],
/*
** Plugins to load before mounting the App
*/
plugins: ['@/plugins/element-ui'],
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
// Doc: https://github.com/nuxt-community/stylelint-module
'@nuxtjs/stylelint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios'
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {},
/*
** Build configuration
*/
build: {
transpile: [/^element-ui/],
/*
** You can extend webpack config here
*/
extend(config, ctx) {}
}
}
JavaScript
1
https://gitee.com/moonandpoetry/apollo.git
git@gitee.com:moonandpoetry/apollo.git
moonandpoetry
apollo
apollo
master

搜索帮助