提交 27fd7af0 authored 作者: vipcxj's avatar vipcxj

code clean

上级 d22c8c31
const proxy = {
"target": "http://192.168.1.22:8080",
"changeOrigin": true,
"pathRewrite": {
target: "http://192.168.1.22:8080",
changeOrigin: true,
pathRewrite: {
"^/api": "/bm/api"
}
};
const resource_proxy = {
"target": "http://192.168.1.22:8080",
"changeOrigin": true,
"pathRewrite": {
target: "http://192.168.1.22:8080",
changeOrigin: true,
pathRewrite: {
"^/resource": "/bm/resource"
}
};
module.exports = {
"entry": "src/index.js",
"html": {
"template": "src/index.ejs",
entry: "src/index.js",
html: {
template: "src/index.ejs",
},
"theme": {
theme: {
"layout-header-height": "48px",
"layout-header-background": "#fff",
"layout-footer-background": "#fff",
......@@ -27,31 +27,31 @@ module.exports = {
'menu-dark-bg': '#404040',
"layout-header-padding": "0",
},
"ignoreMomentLocale": true,
"hash": true,
"env": {
"development": {
ignoreMomentLocale: true,
hash: true,
env: {
development: {
publicPath: "/",
"extraBabelPlugins": [
extraBabelPlugins: [
"dva-hmr",
["import", { "libraryName": "antd", "style": true }]
],
"devtool": "cheap-module-eval-source-map",
"proxy": {
devtool: "cheap-module-eval-source-map",
proxy: {
"/api": proxy,
"/resource": resource_proxy,
}
},
"production": {
production: {
publicPath: "/bm/",
define: {
contextPath: "/bm",
apiContextPath: "/bm"
},
"extraBabelPlugins": [
extraBabelPlugins: [
["import", { "libraryName": "antd", "style": true }]
],
"devtool": "hidden-source-map"
devtool: "hidden-source-map"
}
}
};
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论