1 Star 0 Fork 0

遛弯大爷/f2-h5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
遛弯大爷 提交于 2021-07-20 11:43 . init
const { WEB_URL } = require('./config')
const publicPath = '/static1/'
export default {
mode: 'spa',
server: {
port: 3000, // default: 3000
host: '0.0.0.0' // default: localhost
},
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content:
'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no'
},
{
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: ['@/assets/css/index.css', '@/assets/font/iconfont.css', '@/assets/css/mintui.css'],
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/i18n.client',
'~/plugins/axios.client',
'@/plugins/socket.client',
'@/plugins/mintui.client',
'@/plugins/filters',
'@/plugins/directives'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [],
/*
** Nuxt.js modules
*/
modules: ['@nuxtjs/axios', '@nuxtjs/toast'],
axios: {
baseURL: `${WEB_URL}api`,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
},
toast: {
duration: 3000,
singleton: true,
position: 'top-center'
},
router: {
mode: 'hash'
},
/*
** Build configuration
*/
build: {
publicPath,
babel: {
plugins: [['component', { libraryName: 'mint-ui', style: true }]]
},
/*
** You can extend webpack config here
*/
extend (config, ctx) {
const { isDev } = ctx
if (!isDev) {
config.output.publicPath = `.${publicPath}`
}
return config
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/327630285/f2-h5.git
git@gitee.com:327630285/f2-h5.git
327630285
f2-h5
f2-h5
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385