kn-cli 1.0.37 → 1.0.39

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/start.sh CHANGED
@@ -45,20 +45,20 @@ setEnv(){
45
45
  if [ ! -n "$build_env" ]
46
46
  then
47
47
  read -p "选择环境 [1:本地调试] [2:测试] [3:生产] " apiEnv
48
+ if [ ! -n "$apiEnv" ]
49
+ then
50
+ export build_env="localdebug"
51
+ elif [ $apiEnv = "2" ]
52
+ then
53
+ export build_env="dev"
54
+ elif [ $apiEnv = "3" ]
55
+ then
56
+ export build_env="prod"
57
+ else
58
+ export build_env="localdebug"
59
+ fi
48
60
  fi
49
61
 
50
- if [ ! -n "$apiEnv" ]
51
- then
52
- export build_env="localdebug"
53
- elif [ $apiEnv = "2" ]
54
- then
55
- export build_env="dev"
56
- elif [ $apiEnv = "3" ]
57
- then
58
- export build_env="prod"
59
- else
60
- export build_env="localdebug"
61
- fi
62
62
  echo "编译环境:$build_env"
63
63
  }
64
64
 
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -65,6 +65,12 @@ module.exports = {
65
65
  ```
66
66
 
67
67
  # 更新日志
68
+ * 1.0.39
69
+ 两个MiniCssExtractPlugin插件引起的sourcemap异常
70
+
71
+ * 1.0.38
72
+ 编译环境被强制变为localdebug的问题
73
+
68
74
  * 1.0.37
69
75
  去掉cross_env
70
76
 
@@ -1,5 +1,6 @@
1
1
 
2
2
  module.exports = {
3
+ name:'template-app',
3
4
  registryType:'npm',//npm镜像源,taobao|npm
4
5
  less:{
5
6
  javascriptEnabled:false,//是否开启less js