12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /*
- * @Description:
- * @Author: 欧阳承珺
- * @LastEditors: 欧阳承珺
- * @Date: 2022-10-17 11:06:52
- * @LastEditTime: 2022-11-16 16:42:17
- */
- 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: {
- // '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
- // },
- // Build Configuration: https://go.nuxtjs.dev/config-build
- build: {
- vendor: ['element-ui']
- },
- }
|