-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.roadhogrc.js
36 lines (35 loc) · 891 Bytes
/
.roadhogrc.js
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
const path = require('path');
const svgSpriteDirs = [
path.resolve(__dirname, 'src/svg/'),
require.resolve('antd').replace(/index\.js$/, ''),
]
export default {
// "disableCSSModules": true,
entry: "src/index.js",
svgSpriteLoaderDirs: svgSpriteDirs,
theme: "./theme.config.js",
proxy: {
"/api": {
"target": "http://localhost/PhalApi/Public",
// "target": "http://192.168.8.226:8080/PhalApi/Public",
"changeOrigin": true,
"pathRewrite": { "^/api" : "" }
}
},
publicPath: "/",
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
["import", { "libraryName": "antd", "style": true }]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd", "style": true}]
]
}
}
}