kn-cli 1.0.40 → 1.0.42

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.
@@ -5,6 +5,8 @@ module.exports = {
5
5
  less:{
6
6
  javascriptEnabled:false,//是否开启less js
7
7
  },
8
+ version:'1.0',
9
+ // https:true,//是否使用https本地调试
8
10
  // pxtorem:false,//默认:true,开启px转rem模式
9
11
  // site_root_path:'/dist/',// 默认:'',站点根目录
10
12
  // 自定义多入口
@@ -39,6 +39,8 @@ const support_sass=CLI_CONFIG?.sass??false;
39
39
  const css_modules= CLI_CONFIG?.cssModule??'local';
40
40
  const jsSplitMode = CLI_CONFIG?.jsSplitMode??true;
41
41
  const indexHtml = CLI_CONFIG?.indexHtml ?? true;
42
+ const https= CLI_CONFIG?.https ?? false;
43
+ const appVersion= CLI_CONFIG?.version ?? '';
42
44
 
43
45
  let distFolder = 'dist';
44
46
  let distJsFolder='';
@@ -368,6 +370,7 @@ const plugins= [
368
370
  MOCK: process.env.mock == 1 ? '1' : false, //JSON.stringify(process.env.mock)
369
371
  ...API_HOST,
370
372
  PM_TYPE: JSON.stringify(process.env.pm_type),
373
+ APP_VERSION:JSON.stringify(appVersion)
371
374
  }),
372
375
  new webpack.SourceMapDevToolPlugin({
373
376
  filename: 'sourcemap/[file].map',
@@ -482,7 +485,7 @@ module.exports = {
482
485
  },
483
486
  // port: 8080,
484
487
  // useLocalIp:true,
485
- // https:true,//注意开了https就不能使用本地ip访问,只能使用0.0.0.0
488
+ https:https,//true,//注意开了https就不能使用本地ip访问,只能使用0.0.0.0
486
489
  proxy: API_CONFIG.API_PROXY
487
490
  // hot: true,
488
491
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -61,10 +61,17 @@ module.exports = {
61
61
  // js:'',//js输出的目录
62
62
  // }
63
63
  // pxtorem:false,//默认:true,开启px转rem模式
64
+ // https:true,//是否使用https本地调试
64
65
  };
65
66
  ```
66
67
 
67
68
  # 更新日志
69
+ * 1.0.42
70
+ cli.config.js增加version字段,用来标识应用版本号
71
+
72
+ * 1.0.41
73
+ cli.config.js内增加https的调试模式
74
+
68
75
  * 1.0.40
69
76
  MiniCssExtractPlugin增加忽略引用顺序的警告
70
77
  移动端模板将ant-mobile版本变更为5.28.0
@@ -5,6 +5,7 @@ module.exports = {
5
5
  less:{
6
6
  javascriptEnabled:false,//是否开启less js
7
7
  },
8
+ version:'1.0',
8
9
  // 自定义多入口
9
10
  // entry:{
10
11
  // 'home/index': 'src/jsx/home/index.jsx',