@ecoding/base.build 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/dev/index.js +3 -2
- package/package.json +2 -2
package/libs/dev/index.js
CHANGED
|
@@ -41,14 +41,15 @@ const getDevServer = () => {
|
|
|
41
41
|
// secure: false
|
|
42
42
|
// }
|
|
43
43
|
// },
|
|
44
|
-
|
|
44
|
+
setupMiddlewares: function (middlewares, devServer) {
|
|
45
45
|
if (!devServer) {
|
|
46
46
|
throw new Error("webpack-dev-server is not defined");
|
|
47
47
|
}
|
|
48
48
|
mock(devServer.app, {
|
|
49
49
|
enable: true,
|
|
50
50
|
type: "local"
|
|
51
|
-
})
|
|
51
|
+
})
|
|
52
|
+
return middlewares
|
|
52
53
|
},
|
|
53
54
|
/**
|
|
54
55
|
* config.devServer.proxy用来配置后端api的反向代理, ajax /api/auth/*的请求会被转发到 http://api.example.dev/auth/*, /api/pay/*的请求会被转发到 http://api.example.dev/pay/*.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "9a1e39f9957c08a727eaba23c289a96bf6401282",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/core": "7.26.0",
|
|
20
20
|
"@babel/plugin-proposal-decorators": "7.25.9",
|