@ecoding/base.build 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +14 -3
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -27,10 +27,21 @@
27
27
  publicPath: string; // devserver 读这个
28
28
  port: number, // devserver 端口 默认 8080
29
29
  // https 支持
30
- https: {
31
- key: fs.readFileSync(path.join(__dirname, "./local.cxc.tech-key.pem")),
32
- cert: fs.readFileSync(path.join(__dirname, "./local.cxc.tech.pem"))
30
+ server: {
31
+ type: 'https',
32
+ // Optional: Specify custom certificates
33
+ options: {
34
+ key: fs.readFileSync(path.join(__dirname, "./local.cxc.tech-key.pem")),
35
+ cert: fs.readFileSync(path.join(__dirname, "./local.cxc.tech.pem"))
36
+ // ca: fs.readFileSync('/path/to/ca.pem'),
37
+ }
33
38
  }
39
+ proxy: [
40
+ {
41
+ context: ['/f2e/proxy'],
42
+ target:"http://test.f2e-api.sciecomm.cn",
43
+ }
44
+ ]
34
45
  },
35
46
  ssr: {
36
47
  outputPath: string; // ssr build bundle 目录,相对命令执行目录
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/base.build",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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": "9a1e39f9957c08a727eaba23c289a96bf6401282",
17
+ "gitHead": "fc17f614f625d1910b770d6cd3fabd2aebaca33b",
18
18
  "dependencies": {
19
19
  "@babel/core": "7.26.0",
20
20
  "@babel/plugin-proposal-decorators": "7.25.9",
@@ -38,6 +38,7 @@
38
38
  "css-minimizer-webpack-plugin": "7.0.0",
39
39
  "globby": "11.0.2",
40
40
  "html-webpack-plugin": "5.6.3",
41
+ "husky": "9.1.6",
41
42
  "inline-chunk-html-plugin": "1.1.1",
42
43
  "less": "4.2.0",
43
44
  "less-loader": "12.2.0",