You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudnote_web/nuxt.config.js

118 lines
2.7 KiB

export default {
server: {
port: 5000,
},
/*
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'spa',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'static',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
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' },{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto' }],
},
/*
** Global CSS
*/
css: ['element-ui/lib/theme-chalk/index.css'],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: ['@/plugins/element-ui'],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxt/typescript-build',
// Doc: https://github.com/nuxt-community/stylelint-module
'@nuxtjs/stylelint-module',
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/pwa',
// Doc: https://github.com/nuxt/content
'@nuxt/content',
'nuxt-i18n'
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {},
/*
** Content module configuration
** See https://content.nuxtjs.org/configuration
*/
content: {},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
transpile: [/^element-ui/],
},
i18n: {
locales: ['zhCN', 'en'],
defaultLocale: 'zhCN',
vueI18n: {
fallbackLocale: 'zhCN',
messages: {
zhCN: {
app_name:'云笔记',
choose_lang:'选择语言',
menus:{
document:'文档',
note:'笔记列表',
center:'个人中心',
upload:'本地上传论文'
},
zhCN: '简体中文',
en: '英文',
user: '帐号'
},
en: {
app_name:'cloudnote',
choose_lang:'language',
menus:{
document:'document',
note:'note list',
center:'个人中心',
upload:'本地上传论文'
},
zhCN: 'Simplified Chinese',
en: 'english',
user: '帐号'
}
}
}
}
}