const path = require('path') module.exports = { publicPath: './', pages: { index: { entry: 'src/main.js', template: 'public/index.html', filename: 'index.html', title: '彩虹卡', }, }, configureWebpack: { resolve: { alias: { '@': path.resolve(__dirname, "./src"), }, }, }, devServer: { proxy: { '^/api': { // target: 'http://localhost:8091' target: 'https://www.colorfulsweet.site', changeOrigin: true } } }, }