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.
39 lines
796 B
39 lines
796 B
module.exports = { |
|
lintOnSave: false, |
|
publicPath: '/', |
|
chainWebpack: config => { |
|
config.module |
|
.rule('images') |
|
.use('url-loader') |
|
.loader('url-loader') |
|
.tap(options => Object.assign(options, { limit: 1 })) |
|
}, |
|
configureWebpack: { |
|
externals: { |
|
'BMap': "BMap" |
|
}, |
|
resolve: { |
|
alias: { |
|
'assets': '@/assets', |
|
'common': '@/common', |
|
'components': '@/components', |
|
'network': '@/network', |
|
'views': '@/views', |
|
'plugins': '@/plugins', |
|
} |
|
} |
|
}, |
|
devServer: { |
|
proxy: { |
|
'/api': { |
|
target: 'http://'+process.env.VUE_APP_BASE_URL, |
|
// 允许跨域 |
|
changeOrigin: true, |
|
ws: true, |
|
pathRewrite: { |
|
'^/api': '' |
|
} |
|
} |
|
} |
|
} |
|
}
|
|
|