const { defineConfig } = require('@vue/cli-service') const bundleAnalyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin module.exports = defineConfig({ transpileDependencies: true, lintOnSave: false, //关闭eslint语法检测 outputDir: 'yifengdian-company-report', publicPath:'/yifengdian-company-report/', devServer: { host: 'localhost', port: 9000, hot: true, https: false, proxy: { //配置多个代理 '/api': { target: 'https://yifengdian-smps.elinkservice.cn', // target: 'http://127.0.0.1:10001/api/', // pathRewrite: { // '^/api': '/api' // }, logLevel: 'debug', changeOrigin: true, secure: false }, } }, configureWebpack:config=>{ config.plugins.push( new bundleAnalyzer() ) } })