module.exports = {
mode: 'development',
devtool: 'eval',
devServer: {
static: './dist',
hot: true, //就是这个hot,它默认是true打开的,但是好像也没什么效果(暂时没试出来)
proxy: {
'/abc': {
target: 'http://baicu.com/',
changeOrigin: true
}
}
},
..........
原创文章,作者:745907710,如若转载,请注明出处:https://blog.ytso.com/267785.html