-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
config.devServer = {
contentBase: dist,
historyApiFallback: true,
colors: true,
port: config.port,
proxy: {
'**': {
target: 'http://apis.juhe.cn',
secure: false,
changeOrigin: true,
bypass: (req, res, opt) => {
//I want to add a debug here!!
if (req.headers.accept.indexOf('html') !== -1) {
return dist + '/index.html';
}
}
}
}
};
I want to use node
debug webpack-dev-server
proxy bypass
function. How can i do it?