kn-cli 1.0.68 → 1.0.69

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.
@@ -360,12 +360,15 @@ const plugins= [
360
360
  PM_TYPE: JSON.stringify(process.env.pm_type),
361
361
  APP_VERSION:JSON.stringify(appVersion)
362
362
  }),
363
- new webpack.SourceMapDevToolPlugin({
363
+
364
+ ];
365
+ if(devMode){
366
+ plugins.push(new webpack.SourceMapDevToolPlugin({
364
367
  filename: 'sourcemap/[file].map',
365
368
  // publicPath: '..',//resource_path_relative,
366
369
  // fileContext: 'js',
367
- })
368
- ];
370
+ }))
371
+ }
369
372
 
370
373
 
371
374
  if(indexHtml){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -92,6 +92,9 @@ module.exports = {
92
92
 
93
93
 
94
94
  # 更新日志
95
+ * 1.0.69
96
+ 默认生产环境不输出sourcemap
97
+
95
98
  * 1.0.68
96
99
  1. 更新readme
97
100
  2. 增加`kn-cli --tool`功能,用来创建需要的辅助工具
@@ -0,0 +1,6 @@
1
+ **/node_modules
2
+ **/package-lock.json
3
+ **/.DS_Store
4
+ **/dist
5
+ **/release
6
+
@@ -0,0 +1,6 @@
1
+ **/node_modules
2
+ **/package-lock.json
3
+ **/.DS_Store
4
+ **/dist
5
+ **/release
6
+
@@ -0,0 +1,6 @@
1
+ **/node_modules
2
+ **/package-lock.json
3
+ **/.DS_Store
4
+ **/dist
5
+ **/release
6
+
@@ -0,0 +1,6 @@
1
+ **/node_modules
2
+ **/package-lock.json
3
+ **/.DS_Store
4
+ **/dist
5
+ **/release
6
+
@@ -0,0 +1,6 @@
1
+ **/node_modules
2
+ **/package-lock.json
3
+ **/.DS_Store
4
+ **/dist
5
+ **/release
6
+