
export default {
  /*
  ** Nuxt rendering mode
  ** See https://nuxtjs.org/api/configuration-mode
  */
  mode: 'Universal',
  /*
  ** 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' }
    ], */
    script:[
      {
        src:'/js/meta-pc.js',type:"text/javascript",charset:"utf-8"
      }
    ]
  },
  /*
  ** Global CSS
  loading:'~/components/loading.vue'
  */
  /* loading:'~/components/loading.vue', */
  css: [
    'element-ui/lib/theme-chalk/index.css'
  ],
  /*
  ** Plugins to load before mounting the App
  ** https://nuxtjs.org/guide/plugins
  */
  plugins: [
    '@/plugins/element-ui',
  '@/assets/css/common.css',

  ],
  /*
  ** Auto import components
  ** See https://nuxtjs.org/api/configuration-components
  */
  components: true,
  /*
  ** Nuxt.js dev-modules
  */
  buildModules: [
  ],
  /*
  ** Nuxt.js modules
  */
 cache:true,
  modules: [
    /* ['@nuxtjs/component-cache', { maxAge: 1000 * 60 }] */
  ],
  /*
  ** Build configuration
  ** See https://nuxtjs.org/api/configuration-build/
  */
  build: {
    transpile: [/^element-ui/],
  },

/*  proxy: {
    '/apis': {
      target: 'http://eyouapi.answer12.com/', // 目标服务器ip
      pathRewrite: {
        '^/apis': '/apis',  // 把 /api 替换成 /
        changeOrigin: true // 是否跨域
      }
    }
  }*/
}
