UNPKG
@reactseed/template
Version:
latest (2.4.0)
2.4.0
2.3.1
2.3.0
2.2.0
2.1.0
2.0.0-alpha.1
2.0.0-alpha.0
1.0.3
1.0.3-alpha.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
React seed template for creating react app
github.com/reactseed/reactseed
reactseed/reactseed
@reactseed/template
/
template
/
src
/
setupProxy.js
12 lines
(10 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
mocker
from
'mocker-api'
;
import
{ resolve }
from
'path'
;
module
.
exports
=
function
(
app
) {
mocker
(app,
resolve
(
'./mock/app'
), {
proxy
: {
'/api'
:
'https://api.github.com'
, },
changeHost
:
true
, }); };