@ecoding/base.build 0.0.14 → 0.0.15
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/README.md +12 -3
- package/libs/webpack.ssr.js +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
mpa: boolean, // 是否是多页
|
|
10
10
|
dll:boolean, // 是否打dll
|
|
11
11
|
micro:"main" | "child", // 微前端主应用或子应用 默认null
|
|
12
|
-
outputLibrary: string, // micro == child
|
|
13
|
-
publicPath: string,
|
|
12
|
+
outputLibrary: string, // micro == child时生效,整个库向外暴露的变量名
|
|
13
|
+
publicPath: string, // cdn 资源前缀
|
|
14
14
|
outputPath: string, // build bundle 目录,相对命令执行目录
|
|
15
15
|
externals: object;
|
|
16
16
|
/* externals
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
dev:{
|
|
23
23
|
publicPath: string; // devserver 读这个
|
|
24
24
|
port: number, // devserver 端口 默认 8080
|
|
25
|
+
// https 支持
|
|
26
|
+
https: {
|
|
27
|
+
key: fs.readFileSync(path.join(__dirname, "./local.cxc.tech-key.pem")),
|
|
28
|
+
cert: fs.readFileSync(path.join(__dirname, "./local.cxc.tech.pem"))
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
```
|
|
@@ -55,7 +60,8 @@ module.exports = {
|
|
|
55
60
|
"@babel/preset-env": "7.18.2", // babel插件集合
|
|
56
61
|
"@babel/preset-react": "7.17.12", // babel 支持 react 插件
|
|
57
62
|
"@babel/preset-typescript": "7.17.12", // babel 支持 typescript 插件
|
|
58
|
-
"@ecoding/base.mock": "
|
|
63
|
+
"@ecoding/base.mock": "0.*", // 自己写的mock插件
|
|
64
|
+
"@ecoding/base.spec": "*",
|
|
59
65
|
"@svgr/webpack": "6.2.1", // webpack svg 插件
|
|
60
66
|
"@typescript-eslint/eslint-plugin": "5.28.0", // eslint ts 插件
|
|
61
67
|
"@typescript-eslint/parser": "5.28.0", // eslint ts 编译器
|
|
@@ -64,6 +70,7 @@ module.exports = {
|
|
|
64
70
|
"babel-eslint": "10.1.0",
|
|
65
71
|
"babel-loader": "8.2.5",
|
|
66
72
|
"clean-webpack-plugin": "^4.0.0",
|
|
73
|
+
"concurrently": "^7.3.0", // 并行执行node 命令
|
|
67
74
|
"core-js": "3.23.1",
|
|
68
75
|
"cross-env": "7.0.3",
|
|
69
76
|
"css-loader": "6.7.1",
|
|
@@ -78,10 +85,12 @@ module.exports = {
|
|
|
78
85
|
"postcss-loader": "7.0.0", // css向下兼容
|
|
79
86
|
"style-loader": "3.3.1", // 编译 style 内联css
|
|
80
87
|
"terser-webpack-plugin": "5.3.3", // js压缩
|
|
88
|
+
"typescript": "4.8.3",
|
|
81
89
|
"webpack": "5.73.0",
|
|
82
90
|
"webpack-cli": "4.10.0",
|
|
83
91
|
"webpack-dev-server": "4.9.2",
|
|
84
92
|
"webpack-merge": "5.8.0",
|
|
93
|
+
"webpack-node-externals": "^3.0.0", // 打包ssr时用
|
|
85
94
|
"webpackbar": "5.0.2"
|
|
86
95
|
}
|
|
87
96
|
```
|
package/libs/webpack.ssr.js
CHANGED
|
@@ -7,7 +7,6 @@ const getModule = require("./module/ssr");
|
|
|
7
7
|
const { getResolve, getResolveLoader } = require("./resolve");
|
|
8
8
|
const getExternals = require("./externals/ssr");
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
*
|
|
13
12
|
* @param {*} cmdOpts : build时 { WEBPACK_BUNDLE: true, WEBPACK_BUILD: true } | 本地开发dev时 { WEBPACK_SERVE: true }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "2106c9b443c0f004ba9c17ac744cc19be15998e5"
|
|
57
57
|
}
|