加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
robin 提交于 2019-03-04 23:22 . chore: 代码提交
const pkg = require('./package')
const webpack = require('webpack')
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: '数字货币交易所',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.description }
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
script: [
{
src:
'https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js'
}
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
'element-ui/lib/theme-chalk/index.css',
'element-ui/lib/theme-chalk/display.css',
'assets/scss/common.scss'
//'swiper/dist/css/swiper.css'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/element-ui',
'@/plugins/i18n.js',
'@/plugins/cookie',
'@/plugins/axios',
{src: '@/plugins/vue-swiper.js', ssr: false}
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://github.com/nuxt-community/axios-module#usage
'@nuxtjs/axios'
],
/*
** Axios module configuration
*/
axios: {
// See https://github.com/nuxt-community/axios-module#options
},
router: {
middleware: 'i18n'
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化