@dcloudio/vue-cli-plugin-uni 2.0.1-33520211229002 → 2.0.1-33620211231001
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/mp/index.js +11 -11
- package/package.json +3 -3
package/lib/mp/index.js
CHANGED
|
@@ -200,22 +200,23 @@ module.exports = {
|
|
|
200
200
|
|
|
201
201
|
// 使用外层依赖的版本
|
|
202
202
|
alias['regenerator-runtime'] = require.resolve('regenerator-runtime')
|
|
203
|
-
const
|
|
203
|
+
const output = {
|
|
204
|
+
pathinfo: process.env.UNI_MINIMIZE !== 'true',
|
|
205
|
+
filename: '[name].js',
|
|
206
|
+
chunkFilename: '[id].js',
|
|
207
|
+
globalObject: process.env.UNI_PLATFORM === 'mp-alipay' ? 'my' : 'global'
|
|
208
|
+
// sourceMapFilename: '../.sourcemap/' + process.env.UNI_PLATFORM + '/[name].js.map'
|
|
209
|
+
}
|
|
204
210
|
if (process.env.UNI_MINIMIZE === 'true' && process.env.NODE_ENV === 'development') {
|
|
205
|
-
|
|
211
|
+
output.pathinfo = false
|
|
206
212
|
}
|
|
207
213
|
return {
|
|
208
|
-
mode: process.env.
|
|
214
|
+
mode: process.env.NODE_ENV === 'production' ? 'production'
|
|
209
215
|
: 'development',
|
|
210
216
|
entry () {
|
|
211
217
|
return process.UNI_ENTRY
|
|
212
218
|
},
|
|
213
|
-
output
|
|
214
|
-
filename: '[name].js',
|
|
215
|
-
chunkFilename: '[id].js',
|
|
216
|
-
globalObject: process.env.UNI_PLATFORM === 'mp-alipay' ? 'my' : 'global'
|
|
217
|
-
// sourceMapFilename: '../.sourcemap/' + process.env.UNI_PLATFORM + '/[name].js.map'
|
|
218
|
-
},
|
|
219
|
+
output,
|
|
219
220
|
performance: {
|
|
220
221
|
hints: false
|
|
221
222
|
},
|
|
@@ -263,8 +264,7 @@ module.exports = {
|
|
|
263
264
|
}]
|
|
264
265
|
}]
|
|
265
266
|
},
|
|
266
|
-
plugins
|
|
267
|
-
optimization
|
|
267
|
+
plugins
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
chainWebpack (webpackConfig, vueOptions, api) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-33620211231001",
|
|
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-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.1-33620211231001",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"copy-webpack-plugin": "^5.1.1",
|
|
23
23
|
"cross-env": "^5.2.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"wrap-loader": "^0.2.0",
|
|
38
38
|
"xregexp": "4.0.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0b51b590ac174a12300e3e4149bec762f378b28e"
|
|
41
41
|
}
|