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