-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
41 lines (39 loc) · 1.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"name": "front",
"version": "0.1.0",
"private": true,
"dependencies": {
"antd": "^3.6.2",
"axios": "^0.18.0",
"http-proxy-middleware": "^0.18.0",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.4"
},
"scripts": {
"start": "set HTTPS=true&&react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-app-rewired eject"
},
"devDependencies": {
"babel-plugin-import": "^1.7.0",
"react-app-rewired": "^1.5.2"
},
"proxy": {
"/api/getBooksByName": {
"target": "https://jsonplaceholder.typicode.com/posts/1",
"pathRewrite": { "^/test": "" },
"changeOrigin": true,
"secure": true
},
"/test": {
"target": "https://api.douban.com/",
"pathRewrite": { "^/test": "" },
"changeOrigin": true,
"secure": true
}
}
}