@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-36820221027001 → 2.0.1-alpha-36920221111001

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.
@@ -92,7 +92,7 @@ const plugins = [
92
92
  VUE_APP_PLATFORM: JSON.stringify(process.env.UNI_PLATFORM),
93
93
  UNI_CLOUD_PROVIDER: process.env.UNI_CLOUD_PROVIDER,
94
94
  UNI_SECURE_NETWORK_ENABLE: process.env.UNI_SECURE_NETWORK_ENABLE,
95
- UNI_SECURE_NETWORK_CONFIG: process.env.UNI_SECURE_NETWORK_CONFIG,
95
+ UNI_SECURE_NETWORK_CONFIG: process.env.UNI_SECURE_NETWORK_CONFIG || '[]',
96
96
  UNICLOUD_DEBUG: process.env.UNICLOUD_DEBUG,
97
97
  RUN_BY_HBUILDERX: process.env.RUN_BY_HBUILDERX,
98
98
  UNI_AUTOMATOR_WS_ENDPOINT: JSON.stringify(process.env.UNI_AUTOMATOR_WS_ENDPOINT),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-hbuilderx",
3
- "version": "2.0.1-alpha-36820221027001",
3
+ "version": "2.0.1-alpha-36920221111001",
4
4
  "description": "HBuilderX plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,5 +18,5 @@
18
18
  "css": "~2.2.1",
19
19
  "escodegen": "^1.8.1"
20
20
  },
21
- "gitHead": "40924371d61653884f7ca66ee0b301fef31bd59d"
21
+ "gitHead": "38bf306c7a8c103eddb9698fe58e3dce61503442"
22
22
  }
@@ -62,7 +62,7 @@ class WebpackAppPlusPlugin {
62
62
  callback()
63
63
  })
64
64
 
65
- compiler.hooks.done.tapPromise('WebpackAppPlusPlugin', compilation => {
65
+ compiler.hooks.done.tapPromise('WebpackAppPlusPlugin', stats => {
66
66
  return new Promise((resolve, reject) => {
67
67
  isAppNVue && (nvueCompiled = true)
68
68
  isAppService && (serviceCompiled = true)
@@ -82,7 +82,9 @@ class WebpackAppPlusPlugin {
82
82
  done('Build complete. FILES:' + JSON.stringify(changedFiles))
83
83
  }
84
84
  } else {
85
+ // if (!stats.hasErrors()) {
85
86
  !process.env.UNI_AUTOMATOR_WS_ENDPOINT && done('Build complete. Watching for changes...')
87
+ // };
86
88
  }
87
89
  isFirst = false
88
90
  } else {
@@ -97,7 +99,7 @@ class WebpackAppPlusPlugin {
97
99
  })
98
100
  })
99
101
  } else {
100
- compiler.hooks.done.tapPromise('WebpackAppPlusPlugin', compilation => {
102
+ compiler.hooks.done.tapPromise('WebpackAppPlusPlugin', stats => {
101
103
  return new Promise((resolve, reject) => {
102
104
  if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
103
105
  return resolve()
@@ -135,4 +137,4 @@ class WebpackAppPlusPlugin {
135
137
  }
136
138
  }
137
139
 
138
- module.exports = WebpackAppPlusPlugin
140
+ module.exports = WebpackAppPlusPlugin