@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-34920220520001 → 2.0.1-alpha-34920220520002

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.
@@ -238,14 +238,21 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
238
238
  global.uniModules.forEach(module => {
239
239
  const modules = 'uni_modules/'
240
240
  const assets = modules + module + '/' + assetsDir
241
- const hybrid = modules + module + hybridDir
242
- array.push({
243
- from: path.resolve(process.env.UNI_INPUT_DIR, assets),
244
- to: assets
245
- }, {
246
- from: path.resolve(process.env.UNI_INPUT_DIR, hybrid),
247
- to: hybrid
248
- })
241
+ const assetsPath = path.resolve(process.env.UNI_INPUT_DIR, assets)
242
+ if (fs.existsSync(assetsPath)) {
243
+ array.push({
244
+ from: assetsPath,
245
+ to: assets
246
+ })
247
+ }
248
+ const hybridHtml = modules + module + '/' + hybridDir
249
+ const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR, hybridHtml)
250
+ if (fs.existsSync(hybridHtmlPath)) {
251
+ array.push({
252
+ from: hybridHtmlPath,
253
+ to: hybridHtml
254
+ })
255
+ }
249
256
  })
250
257
 
251
258
  if (process.env.UNI_USING_NVUE_COMPILER) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-hbuilderx",
3
- "version": "2.0.1-alpha-34920220520001",
3
+ "version": "2.0.1-alpha-34920220520002",
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": "a6779d21ec5926943cd9640dfcaf4158a45684ee"
21
+ "gitHead": "0349824a6f2fc0c1b316e53707c02f9e7803586f"
22
22
  }