1234567891011121314151617181920212223242526272829303132333435363738394041 |
- const path = require('path');
- module.exports = {
- publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
- outputDir: 'mobile',
- configureWebpack: {
- // 开发生产共同配置
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- '@c': path.resolve(__dirname, './src/components'),
- '@a': path.resolve(__dirname, './src/assets'),
- },
- },
- },
- devServer: {
- port: '9009',
- //api地址前缀
- proxy: {
- '/api': {
- target: 'http://broadcast.waityou24.cn', //http://10.4.61.155:8888
- ws: false,
- },
- '/files': {
- target: 'http://broadcast.waityou24.cn',
- ws: false,
- },
- '/ws': {
- target: 'http://broadcast.waityou24.cn',
- ws: false,
- },
- '/weixin': {
- target: 'http://wx.cc-lotus.info',
- changeOrigin: true,
- ws: false,
- pathRewrite: {
- '^/weixin': '/api',
- },
- },
- },
- },
- };
|