@dcloudio/vue-cli-plugin-uni 2.0.1-alpha-35220220715001 → 2.0.1-alpha-35220220718001
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/lib/env.js +5 -5
- package/package.json +3 -3
package/lib/env.js
CHANGED
|
@@ -21,7 +21,7 @@ if (process.env.UNI_INPUT_DIR && process.env.UNI_INPUT_DIR.indexOf('./') === 0)
|
|
|
21
21
|
process.env.UNI_INPUT_DIR = process.env.UNI_INPUT_DIR || path.resolve(process.cwd(), defaultInputDir)
|
|
22
22
|
|
|
23
23
|
const {
|
|
24
|
-
getManifestJson,
|
|
24
|
+
getManifestJson,
|
|
25
25
|
isEnableUniPushV1,
|
|
26
26
|
isEnableUniPushV2,
|
|
27
27
|
isUniPushOffline
|
|
@@ -66,8 +66,6 @@ process.env.VUE_APP_NAME = manifestJsonObj.name
|
|
|
66
66
|
|
|
67
67
|
process.env.UNI_USING_V3_SCOPED = true
|
|
68
68
|
|
|
69
|
-
process.env.UNI_CLOUD_PROVIDER = JSON.stringify([])
|
|
70
|
-
|
|
71
69
|
// 导出到小程序插件
|
|
72
70
|
process.env.UNI_MP_PLUGIN_EXPORT = JSON.stringify(Object.keys(platformOptions.plugins || {}).map(pluginName =>
|
|
73
71
|
platformOptions.plugins[pluginName].export))
|
|
@@ -75,7 +73,9 @@ process.env.UNI_MP_PLUGIN_EXPORT = JSON.stringify(Object.keys(platformOptions.pl
|
|
|
75
73
|
const isH5 = !process.env.UNI_SUB_PLATFORM && process.env.UNI_PLATFORM === 'h5'
|
|
76
74
|
const isProduction = process.env.NODE_ENV === 'production'
|
|
77
75
|
|
|
78
|
-
|
|
76
|
+
// uniCloud
|
|
77
|
+
if (!process.env.UNI_CLOUD_PROVIDER && process.env.UNI_CLOUD_SPACES) {
|
|
78
|
+
process.env.UNI_CLOUD_PROVIDER = JSON.stringify([])
|
|
79
79
|
try {
|
|
80
80
|
const spaces = JSON.parse(process.env.UNI_CLOUD_SPACES)
|
|
81
81
|
if (Array.isArray(spaces)) {
|
|
@@ -561,4 +561,4 @@ runByHBuilderX && console.log(uniI18n.__('compiling'))
|
|
|
561
561
|
|
|
562
562
|
module.exports = {
|
|
563
563
|
manifestPlatformOptions: platformOptions
|
|
564
|
-
}
|
|
564
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-35220220718001",
|
|
4
4
|
"description": "uni-app plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "fxy060608",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcloudio/uni-stat": "^2.0.1-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.1-alpha-35220220718001",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"clone-deep": "^4.0.1",
|
|
23
23
|
"copy-webpack-plugin": "^5.1.1",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"wrap-loader": "^0.2.0",
|
|
40
40
|
"xregexp": "4.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d20a196d58f7e92e34c3b10980a0c8d1d28d236b"
|
|
43
43
|
}
|