@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-alpha-34920220516003 → 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.
- package/build/webpack.nvue.conf.js +26 -4
- package/package.json +2 -2
|
@@ -211,9 +211,11 @@ if (process.env.UNI_USING_V3_NATIVE) {
|
|
|
211
211
|
|
|
212
212
|
if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
213
213
|
plugins.push(new WebpackUniMPPlugin())
|
|
214
|
+
const assetsDir = 'static'
|
|
215
|
+
const hybridDir = 'hybrid/html'
|
|
214
216
|
const array = [{
|
|
215
|
-
from: path.resolve(process.env.UNI_INPUT_DIR,
|
|
216
|
-
to:
|
|
217
|
+
from: path.resolve(process.env.UNI_INPUT_DIR, assetsDir),
|
|
218
|
+
to: assetsDir
|
|
217
219
|
}]
|
|
218
220
|
// 自动化测试时,不启用androidPrivacy.json
|
|
219
221
|
if (!process.env.UNI_AUTOMATOR_WS_ENDPOINT) {
|
|
@@ -225,14 +227,34 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
|
225
227
|
})
|
|
226
228
|
}
|
|
227
229
|
}
|
|
228
|
-
const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR,
|
|
230
|
+
const hybridHtmlPath = path.resolve(process.env.UNI_INPUT_DIR, hybridDir)
|
|
229
231
|
if (fs.existsSync(hybridHtmlPath)) {
|
|
230
232
|
array.push({
|
|
231
233
|
from: hybridHtmlPath,
|
|
232
|
-
to:
|
|
234
|
+
to: hybridDir
|
|
233
235
|
})
|
|
234
236
|
}
|
|
235
237
|
|
|
238
|
+
global.uniModules.forEach(module => {
|
|
239
|
+
const modules = 'uni_modules/'
|
|
240
|
+
const assets = modules + module + '/' + assetsDir
|
|
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
|
+
}
|
|
256
|
+
})
|
|
257
|
+
|
|
236
258
|
if (process.env.UNI_USING_NVUE_COMPILER) {
|
|
237
259
|
array.push({
|
|
238
260
|
from: path.resolve(getTemplatePath(), 'common'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
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": "
|
|
21
|
+
"gitHead": "0349824a6f2fc0c1b316e53707c02f9e7803586f"
|
|
22
22
|
}
|