@ecoding/base.build 0.1.11 → 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 CHANGED
@@ -13,6 +13,7 @@
13
13
  publicPath: string; // client cdn 资源前缀
14
14
  outputPath: string; // client build bundle 目录,相对命令执行目录
15
15
  runtimeChunk: bool; // 是否在html里内联webpack-runtime
16
+ noClear: bool; // 是否使用 CleanWebpackPlugin, 默认false
16
17
  externals: object;
17
18
  /* externals
18
19
  {
@@ -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.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "tpl building",
5
5
  "author": "cxc",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "rimraf": "^3.0.2",
40
40
  "style-loader": "3.3.1",
41
41
  "terser-webpack-plugin": "5.3.3",
42
- "typescript": "4.8.3",
42
+ "typescript": "^4.8.4",
43
43
  "webpack": "5.73.0",
44
44
  "webpack-cli": "4.10.0",
45
45
  "webpack-dev-server": "4.9.2",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "cb5679f6b7f60cd51fe8e5da9cd8d68e258797a0"
53
+ "gitHead": "214f9ec730c9f5257a99cab28ebe3ff9af4bb689"
54
54
  }