1 Star 0 Fork 124

Plocklsh/nuxt-elm

forked from bowen/nuxt-elm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.js 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
[cai.bowen] 提交于 2018-09-14 17:55 . updata
module.exports = {
head: {
title: '饿了么',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' },
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'msapplication-tap-highlight', content: 'no' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
],
link: [
{ rel: 'SHORTCUT ICON', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{ src: 'https://easytuan.gitee.io/node-elm-api/public/flexible.js' },
],
},
loading: { color: '#3B8070' },
cache: true,
build: {
filenames: {
manifest: `manifest.[hash]${new Date().getTime()}.js`,
vendor: `vendor.[hash]${new Date().getTime()}.js`,
app: `app.[chunkhash]${new Date().getTime()}.js`
},
vendor: ['axios', 'mint-ui', 'js-cookie'],
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
modules: [
'@nuxtjs/axios',
'@nuxtjs/proxy'
],
proxy: [
[
'/api',{
// target: 'http://localhost:9000',
target: 'https://elm-api.caibowen.net',
changeOrigin: true,
pathRewrite: { '^/api' : '/' }
}
]
],
plugins: [
{ src: '~plugins/mint-ui' },
{ src: '~assets/styles/base.scss' },
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/plocklsh/nuxt-elm.git
git@gitee.com:plocklsh/nuxt-elm.git
plocklsh
nuxt-elm
nuxt-elm
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385