12345678910111213141516171819202122232425262728293031323334 |
- const path = require('path');
- module.exports = {
- publicPath: '/',
- // pages: {
- // index: 'src/pages/login/main.js',
- // },
- configureWebpack: config => {
- Object.assign(config, {
- // 开发生产共同配置
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- '@c': path.resolve(__dirname, './src/components'),
- '@a': path.resolve(__dirname, './src/assets'),
- },
- },
- });
- },
- devServer: {
- port: '8001',
- //api地址前缀
- proxy: {
- '/admin': {
- target: 'http://10.16.11.186:80', //10.16.11.186:80 10.16.11.227:7001
- changeOrigin: true,
- ws: false,
- // pathRewrite: {
- // '/': '',
- // },
- },
- },
- },
- };
|