@ecoding/base.build 0.1.10 → 0.2.0
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 +1 -0
- package/libs/plugins/index.js +1 -1
- package/package.json +4 -6
package/README.md
CHANGED
package/libs/plugins/index.js
CHANGED
|
@@ -105,7 +105,7 @@ module.exports = () => {
|
|
|
105
105
|
// 内联runtime
|
|
106
106
|
customConfig.runtimeChunk && customConfig.micro !== "child" && new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/wp-runtime-.*\.js/]),
|
|
107
107
|
|
|
108
|
-
new CleanWebpackPlugin(),
|
|
108
|
+
!customConfig.noClear && new CleanWebpackPlugin(),
|
|
109
109
|
|
|
110
110
|
// 告诉webpack哪些库不参与打包,同时使用时的名称也得变
|
|
111
111
|
customConfig.dll &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
"@babel/preset-react": "7.17.12",
|
|
19
19
|
"@babel/preset-typescript": "7.17.12",
|
|
20
20
|
"@ecoding/base.mock": "0.*",
|
|
21
|
-
"@ecoding/base.spec": "^0.0.
|
|
21
|
+
"@ecoding/base.spec": "^0.0.5",
|
|
22
22
|
"@svgr/webpack": "6.2.1",
|
|
23
23
|
"add-asset-html-webpack-plugin": "5.0.2",
|
|
24
24
|
"autoprefixer": "10.4.7",
|
|
25
|
-
"babel-eslint": "10.1.0",
|
|
26
25
|
"babel-loader": "8.2.5",
|
|
27
26
|
"clean-webpack-plugin": "^4.0.0",
|
|
28
27
|
"concurrently": "^7.3.0",
|
|
@@ -30,7 +29,6 @@
|
|
|
30
29
|
"cross-env": "7.0.3",
|
|
31
30
|
"css-loader": "6.7.1",
|
|
32
31
|
"css-minimizer-webpack-plugin": "4.0.0",
|
|
33
|
-
"eslint": "8.18.0",
|
|
34
32
|
"globby": "^11.0.2",
|
|
35
33
|
"html-webpack-plugin": "5.5.0",
|
|
36
34
|
"inline-chunk-html-plugin": "1.1.1",
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
"rimraf": "^3.0.2",
|
|
42
40
|
"style-loader": "3.3.1",
|
|
43
41
|
"terser-webpack-plugin": "5.3.3",
|
|
44
|
-
"typescript": "4.8.
|
|
42
|
+
"typescript": "^4.8.4",
|
|
45
43
|
"webpack": "5.73.0",
|
|
46
44
|
"webpack-cli": "4.10.0",
|
|
47
45
|
"webpack-dev-server": "4.9.2",
|
|
@@ -52,5 +50,5 @@
|
|
|
52
50
|
"publishConfig": {
|
|
53
51
|
"access": "public"
|
|
54
52
|
},
|
|
55
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "214f9ec730c9f5257a99cab28ebe3ff9af4bb689"
|
|
56
54
|
}
|