kn-cli 1.0.38 → 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
|
@@ -369,7 +369,6 @@ const plugins= [
|
|
|
369
369
|
...API_HOST,
|
|
370
370
|
PM_TYPE: JSON.stringify(process.env.pm_type),
|
|
371
371
|
}),
|
|
372
|
-
new MiniCssExtractPlugin({ filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css` }),
|
|
373
372
|
new webpack.SourceMapDevToolPlugin({
|
|
374
373
|
filename: 'sourcemap/[file].map',
|
|
375
374
|
// publicPath: '..',//resource_path_relative,
|
|
@@ -432,7 +431,10 @@ if (!devMode) {
|
|
|
432
431
|
}
|
|
433
432
|
if(cssSplitMode){
|
|
434
433
|
plugins.push(
|
|
435
|
-
new MiniCssExtractPlugin({
|
|
434
|
+
new MiniCssExtractPlugin({
|
|
435
|
+
filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css`,
|
|
436
|
+
ignoreOrder: true
|
|
437
|
+
}),
|
|
436
438
|
)
|
|
437
439
|
}
|
|
438
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,13 @@ module.exports = {
|
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
# 更新日志
|
|
68
|
+
* 1.0.40
|
|
69
|
+
MiniCssExtractPlugin增加忽略引用顺序的警告
|
|
70
|
+
移动端模板将ant-mobile版本变更为5.28.0
|
|
71
|
+
|
|
72
|
+
* 1.0.39
|
|
73
|
+
两个MiniCssExtractPlugin插件引起的sourcemap异常
|
|
74
|
+
|
|
68
75
|
* 1.0.38
|
|
69
76
|
编译环境被强制变为localdebug的问题
|
|
70
77
|
|