1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 'use strict'
- const path = require('path')
- const proxyUrl = 'https://test.dayaedu.com'
- module.exports = {
- dev: {
- host:'0.0.0.0',
-
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable: {
- '/api-mall-admin': {
- target: proxyUrl,
- changeOrigin: true
- },
- '/api-web': {
- target: proxyUrl,
- changeOrigin: true
- },
- '/api-auth': {
- target: proxyUrl,
- changeOrigin: true,
- rewrite: path => path.replace(/^\/gitee/, '/api-auth')
- }
- },
-
- host: '0.0.0.0',
- useLocalIp: true,
- port: 8090,
- autoOpenBrowser: false,
- errorOverlay: true,
- notifyOnErrors: true,
- poll: false,
-
-
- devtool: 'cheap-module-eval-source-map',
-
-
-
- cacheBusting: true,
- cssSourceMap: true
- },
- build: {
-
- index: path.resolve(__dirname, '../dist/index.html'),
-
- assetsRoot: path.resolve(__dirname, '../dist'),
- assetsSubDirectory: 'static',
- assetsPublicPath: './',
-
- productionSourceMap: true,
-
- devtool: '#source-map',
-
-
-
-
- productionGzip: false,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- }
|