You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
835 B
33 lines
835 B
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()
|
|
)
|
|
}
|
|
})
|