Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Conversation

@qieguo2016
Copy link

Only proxy to match path while options.map is defined and bypass
others. So, mutil proxy host will be supported.
e.g:
proxy({
host: 'http://alicdn.com',
map: {
'index.js': 'index-1.js'
}
})
Only index.js will be proxy to http://alicdn.com.
If you want to proxy other path to another host, just define another
proxy!

Change-Id: I4c21d75c81a2360887a6b8a0a1dcec6e93532ed5

Only proxy to match path while options.map is defined and bypass
others. So, mutil proxy host will be supported.
e.g:
proxy({
host: 'http://alicdn.com',
map: {
'index.js': 'index-1.js'
}
})
Only index.js will be proxy to http://alicdn.com.
If you want to proxy other path to another host, just define another
proxy!

Change-Id: I4c21d75c81a2360887a6b8a0a1dcec6e93532ed5
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant