63 Star 380 Fork 120

bowen / nuxt-elm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nuxt.config.js 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
bowen 提交于 2018-11-01 14:24 . update
module.exports = {
mode: 'spa',
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: {
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)/
})
}
}
},
plugins: [
{ src: '~plugins/mint-ui' },
{ src: '~assets/styles/base.scss' },
],
}
JavaScript
1
https://gitee.com/easytuan/nuxt-elm.git
git@gitee.com:easytuan/nuxt-elm.git
easytuan
nuxt-elm
nuxt-elm
master

搜索帮助