| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- const pkg = require('./package')
- module.exports = {
- mode: 'spa',
- server: {
- host: "0.0.0.0",
- port: 20201
- },
- /**
- * 打包文件
- */
- build: {
- vendor: ['axios', 'element-ui']
- },
- /*
- ** Headers of the page
- */
- head: {
- title: pkg.name,
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', 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: [
- 'element-ui/lib/theme-chalk/index.css',
- '@/assets/css/common.css',
- ],
- /*
- ** Plugins to load before mounting the App
- */
- plugins: [
- '@/plugins/element-ui',
- '@/plugins/http',
- '@/plugins/quill',
- ],
- /*
- ** Nuxt.js modules
- */
- modules: [
- // Doc: https://github.com/nuxt-community/axios-module#usage
- '@nuxtjs/axios',
- '@nuxtjs/proxy'
- ],
- /*
- ** Axios module configuration
- */
- axios: {
- // See https://github.com/nuxt-community/axios-module#options
- },
- /**
- * Proxy
- */
- proxy: [
- ['/api', { target: 'https://dev.test.proginn.com/', changeOrigin: true }]
- ],
- /*
- ** Build configuration
- */
- build: {
- /*
- ** You can extend webpack config here
- */
- extend(config, ctx) {
- }
- }
- }
|