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.
@@ -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({ filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css` }),
434
+ new MiniCssExtractPlugin({
435
+ filename: `[name]${hashMode ? '-[chunkhash:8]' : ''}.css`,
436
+ ignoreOrder: true
437
+ }),
436
438
  )
437
439
  }
438
440
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
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
  // }
@@ -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
 
@@ -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';