@ecoding/base.build 1.0.0 → 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 CHANGED
@@ -41,14 +41,15 @@ const getDevServer = () => {
41
41
  // secure: false
42
42
  // }
43
43
  // },
44
- onBeforeSetupMiddleware: function (devServer) {
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.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": "1812e86a2cea56137cae90fd6c243f3733433a1e",
17
+ "gitHead": "9a1e39f9957c08a727eaba23c289a96bf6401282",
18
18
  "dependencies": {
19
19
  "@babel/core": "7.26.0",
20
20
  "@babel/plugin-proposal-decorators": "7.25.9",
@@ -43,7 +43,7 @@
43
43
  "less-loader": "12.2.0",
44
44
  "mini-css-extract-plugin": "2.9.2",
45
45
  "postcss-loader": "8.1.1",
46
- "rimraf": "6.0.1",
46
+ "rimraf": "5.0.10",
47
47
  "style-loader": "4.0.0",
48
48
  "svg-sprite-loader": "6.0.11",
49
49
  "terser-webpack-plugin": "5.3.10",