kn-cli 1.0.39 → 1.0.40
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/webpack.config.js
CHANGED
|
@@ -431,7 +431,10 @@ if (!devMode) {
|
|
|
431
431
|
}
|
|
432
432
|
if(cssSplitMode){
|
|
433
433
|
plugins.push(
|
|
434
|
-
new MiniCssExtractPlugin({
|
|
434
|
+
new MiniCssExtractPlugin({
|
|
435
|
+
filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css`,
|
|
436
|
+
ignoreOrder: true
|
|
437
|
+
}),
|
|
435
438
|
)
|
|
436
439
|
}
|
|
437
440
|
|
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
|
// }
|
|
@@ -65,6 +65,10 @@ module.exports = {
|
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
# 更新日志
|
|
68
|
+
* 1.0.40
|
|
69
|
+
MiniCssExtractPlugin增加忽略引用顺序的警告
|
|
70
|
+
移动端模板将ant-mobile版本变更为5.28.0
|
|
71
|
+
|
|
68
72
|
* 1.0.39
|
|
69
73
|
两个MiniCssExtractPlugin插件引起的sourcemap异常
|
|
70
74
|
|