12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- const isProdMode = Object.is(process.env.NODE_ENV, 'production')
- const baseUrl = process.env.BASE_URL || (isProdMode ? 'https://city-service.ubtob.com' : 'http://10.1.51.81:8687/')
- const cityDomain = process.env.CITY_DOMAIN || (isProdMode ? 'thxz' : 'thxz')
- module.exports = {
- head: {
- title: '产城园区',
- meta: [
- { charset: 'utf-8' },
- { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
- { name: 'render', content: 'webkit' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: '服务一体化' }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/U.png' }
- ]
- },
- /*
- ** Customize the progress-bar color
- */
- loading: { color: '#3B8070' },
- /*
- ** Build configuration
- */
- build: {
- /*
- ** Run ESLINT on save
- */
- extend(config, { isDev }) {
- if (isDev && process.client) {
- config.module.rules.push({
- enforce: "pre",
- test: /\.(js|vue)$/,
- loader: "eslint-loader",
- exclude: /(node_modules)/
- })
- }
- },
- vendor: [
- 'axios',
- 'element-ui',
- 'vue-jsonp',
- 'vue-clipboard2'
- ]
- },
- css: [{src: '~assets/scss/app.scss', lang: 'scss'}],
- dev: !isProdMode,
- env: {
- baseUrl,
- cityDomain
- },
- plugins: [{
- src: '~plugins/axios.js'
- }, {
- src: '~plugins/city-service.js'
- }, {
- src: '~plugins/element-ui.js',
- },{
- src: "~plugins/vue-jsonp.js",
- ssr: false
- }, {
- src: "~plugins/vue-clipboard2.js",
- ssr: false
- }],
- /* TODO 暂时代理到商城测试版,之后再做出调整 */
- proxyTable: [
- '/search/**',
- '/user/**',
- '/login/**',
- '/register/**',
- '/logout/**',
- '/city/**',
- '/city/thxz/api/**',
- '/api/**',
- '/zuul/**',
- '/ERP/**',
- '/sync/**']
- }
|