2 Star 3 Fork 0

张亮/nuxt.js_kuangJia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
张亮 提交于 2020-07-02 17:25 . nuxt框架750px移动适配调用
export default {
/*
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'universal',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'server',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
title: '零度官网',
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' }
],
script: [ //移动端适配
{
src:"/js/flexible.js", type: 'text/javascript', charset: 'utf-8'
}
]
},
/*
** Global CSS
*/
css: [
'element-ui/lib/theme-chalk/index.css',
'assets/main.css' // 新增自定义的页面过渡样式(文件来自3.4.1)
],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [
'@/plugins/element-ui',
{ src: '@/plugins/localStorage', ssr: false },
'@plugins/axios'
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
// baseURL: "http://157.122.54.189:9095" // 新增备用地址
},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
transpile: [/^element-ui/],
postcss:[ //750px移动端适配
require("postcss-px2rem")({
remUnit: 75
})
// require('autoprefixer')
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang_liang1013/nuxt.js_kuangJia.git
git@gitee.com:zhang_liang1013/nuxt.js_kuangJia.git
zhang_liang1013
nuxt.js_kuangJia
nuxt.js_kuangJia
master

搜索帮助