| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- const pkg = require('./package')
- module.exports = {
- mode: 'universal',
- /**
- * 打包文件
- */
- build: {
- vendor: ['axios', 'element-ui']
- },
- server: {
- },
- /*
- ** Headers of the page
- */
- head: {
- title: '程序员客栈',
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { name: 'baidu-site-verification', content: '7IbkIN9Kwp' },
- { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
- // hid: 'x', 可在页面内覆盖这里
- { name: 'robots', content: 'noindex,follow' },
- { name: 'description', content: pkg.description }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
- ]
- },
- /*
- ** Customize the progress-bar color
- */
- loading: { color: '#fff' },
- /*
- ** Global CSS
- */
- css: [
- '@/assets/css/common.css'
- ],
- /*
- ** Plugins to load before mounting the App
- */
- plugins: [
- 'plugins/element',
- 'plugins/http',
- ],
- /*
- ** Axios module configuration
- */
- axios: {
- // See https://github.com/nuxt-community/axios-module#options
- proxy: true
- },
- /**
- * Proxy
- */
- proxy: [
- ['/api', { target: 'https://dev.test.proginn.com', changeOrigin: true }],
- ['/image', { target: 'https://stacdn.proginn.com', changeOrigin: true }],
- ],
- /*
- ** Nuxt.js modules
- */
- modules: [
- '@nuxtjs/axios',
- '@nuxtjs/proxy',
- ],
- /*
- ** Build configuration
- */
- build: {
- /*
- ** You can extend webpack config here
- */
- extend(config, ctx) {
- }
- }
- }
|