1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /*
- * @Description:
- * @Author: 欧阳承珺
- * @LastEditors: 欧阳承珺
- * @Date: 2022-10-17 11:06:52
- * @LastEditTime: 2022-11-16 15:41:46
- */
- export default {
- // Global page headers: https://go.nuxtjs.dev/config-head
- head: {
- title: '',
- htmlAttrs: {
- lang: 'en',
- },
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: '' },
- { name: 'format-detection', content: 'telephone=no' },
- ],
- link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
- },
- env: {
- BASE_URL: process.env.BASE_URL,
- NODE_ENV: process.env.NODE_ENV
- },
- // Global CSS: https://go.nuxtjs.dev/config-css
- css: [
- '@/assets/main.scss',
- {src:'element-ui/lib/theme-chalk/index.css'},
- ],
- // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
- plugins: [
- '~/plugins/axios',
- {src: '~plugins/element-ui', ssr: false},
- {src: '@/plugins/localStorage', ssr: true},
- {src: '@/plugins/vueqr', ssr: false},
- ],
- // Auto import components: https://go.nuxtjs.dev/config-components
- components: true,
- // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
- buildModules: [
- // https://go.nuxtjs.dev/typescript
- '@nuxt/typescript-build',
- // https://windicss.org/guide/
- 'nuxt-windicss',
- '@nuxtjs/composition-api/module'
- ],
- // Modules: https://go.nuxtjs.dev/config-modules
- modules: [
- '@nuxtjs/axios',
- '@nuxtjs/proxy',
- ],
- axios: {
- timeout: 3000,
- baseURL: process.env.BASE_URL,
- prefix: '/17pdf-backend-core/',
- // proxy: process.env.NODE_ENV !== 'production'
- },
- // proxy: {
- // '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
- // },
- // Build Configuration: https://go.nuxtjs.dev/config-build
- build: {
- vendor: ['element-ui']
- },
- }
|