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.
package/build/cli.config.js
CHANGED
package/build/webpack.config.js
CHANGED
|
@@ -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
|
-
|
|
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
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
|