kn-cli 1.0.39 → 1.0.41

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,7 @@ module.exports = {
5
5
  less:{
6
6
  javascriptEnabled:false,//是否开启less js
7
7
  },
8
+ // https:true,//是否使用https本地调试
8
9
  // pxtorem:false,//默认:true,开启px转rem模式
9
10
  // site_root_path:'/dist/',// 默认:'',站点根目录
10
11
  // 自定义多入口
@@ -39,6 +39,7 @@ 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;
42
43
 
43
44
  let distFolder = 'dist';
44
45
  let distJsFolder='';
@@ -431,7 +432,10 @@ if (!devMode) {
431
432
  }
432
433
  if(cssSplitMode){
433
434
  plugins.push(
434
- new MiniCssExtractPlugin({ filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css` }),
435
+ new MiniCssExtractPlugin({
436
+ filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css`,
437
+ ignoreOrder: true
438
+ }),
435
439
  )
436
440
  }
437
441
 
@@ -479,7 +483,7 @@ module.exports = {
479
483
  },
480
484
  // port: 8080,
481
485
  // useLocalIp:true,
482
- // https:true,//注意开了https就不能使用本地ip访问,只能使用0.0.0.0
486
+ https:https,//true,//注意开了https就不能使用本地ip访问,只能使用0.0.0.0
483
487
  proxy: API_CONFIG.API_PROXY
484
488
  // hot: true,
485
489
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -34,7 +34,7 @@ module.exports = {
34
34
  hashMode:false,//默认:true,false=关闭编译后的文件使用hash模式使用原始文件名
35
35
  cssModule:'global',//默认:local, css引用默认的模式,global/local/(path)=>global/local
36
36
  // cssModule: (resourcePath) => {
37
- // // antd.less编译的时候使用global模式
37
+ // // antd.less编译的时候使用global模式,注意这里针对在项目目录下在jsx内通过import引入的less
38
38
  // if (/antd.less$/i.test(resourcePath)) {
39
39
  // return 'global'
40
40
  // }
@@ -61,10 +61,18 @@ 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.41
70
+ cli.config.js内增加https的调试模式
71
+
72
+ * 1.0.40
73
+ MiniCssExtractPlugin增加忽略引用顺序的警告
74
+ 移动端模板将ant-mobile版本变更为5.28.0
75
+
68
76
  * 1.0.39
69
77
  两个MiniCssExtractPlugin插件引起的sourcemap异常
70
78
 
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "MIT",
9
9
  "dependencies": {
10
- "antd-mobile": "~5.27.0",
10
+ "antd-mobile": "~5.28.0",
11
11
  "axios": "~1.1.3",
12
12
  "moment": "~2.29.4",
13
13
  "react": "~17.0.2",
@@ -1,7 +1,7 @@
1
1
  import React, { Suspense } from 'react';
2
2
  import ReactDOM from 'react-dom';
3
- import {Button} from 'antd-mobile';
4
- Button;
3
+ import * as antdMobile from 'antd-mobile';
4
+ antdMobile;
5
5
 
6
6
  import './_reset.less';
7
7
  import './_antd.less';