Files

11 lines
337 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// res-proxy.js —— 开发服务器把 /res/* 转给本地资源代理(tools/res_proxy.js)
config.devServer = config.devServer || {};
config.devServer.proxy = (config.devServer.proxy || []).concat([
{
context: ['/res'],
target: 'http://127.0.0.1:8082',
changeOrigin: true,
pathRewrite: { '^/res': '' },
},
]);