@dcloudio/vue-cli-plugin-uni 2.0.0-32620210831002 → 2.0.0-32920210926001
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/commands/build.js +7 -5
- package/generator.js +2 -2
- package/lib/copy-webpack-options.js +51 -20
- package/lib/env.js +34 -10
- package/lib/mp/index.js +7 -5
- package/lib/util.js +5 -6
- package/package.json +3 -3
- package/packages/@vue/component-compiler-utils/MODIFY.md +5 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/API.md +873 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/CHANGELOG.md +466 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/LICENSE-MIT +22 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/README.md +49 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/index.js +26 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/parser.js +1088 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/processor.js +185 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/attribute.js +468 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/className.js +67 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/combinator.js +35 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/comment.js +35 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/constructors.js +91 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/container.js +392 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/guards.js +54 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/id.js +39 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/index.js +39 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/namespace.js +98 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/nesting.js +36 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/node.js +216 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/pseudo.js +40 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/root.js +60 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/selector.js +35 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/string.js +35 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/tag.js +35 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/types.js +15 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/universal.js +36 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/sortAscending.js +10 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/tokenTypes.js +39 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/tokenize.js +271 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/ensureObject.js +20 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/getProp.js +22 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/index.js +41 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/stripComments.js +21 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/unesc.js +18 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/package.json +76 -0
- package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts +499 -0
- package/packages/mp-vue/package.json +1 -0
- package/packages/uni-cloud/dist/index.js +1 -1
- package/packages/vuex/dist/vuex.cjs.js +3 -2
package/commands/build.js
CHANGED
|
@@ -2,7 +2,8 @@ const path = require('path')
|
|
|
2
2
|
|
|
3
3
|
const {
|
|
4
4
|
runByHBuilderX,
|
|
5
|
-
isInHBuilderX
|
|
5
|
+
isInHBuilderX,
|
|
6
|
+
parseJson
|
|
6
7
|
} = require('@dcloudio/uni-cli-shared')
|
|
7
8
|
|
|
8
9
|
const uniI18n = require('@dcloudio/uni-cli-i18n')
|
|
@@ -45,13 +46,14 @@ module.exports = (api, options) => {
|
|
|
45
46
|
process.env.UNI_SUBPACKGE = args.subpackage
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
const mpPluginPlatforms = ['mp-weixin', 'mp-alipay']
|
|
48
50
|
if (args.plugin) {
|
|
49
|
-
if (process.env.UNI_PLATFORM
|
|
51
|
+
if (mpPluginPlatforms.includes(process.env.UNI_PLATFORM)) {
|
|
50
52
|
process.env.UNI_MP_PLUGIN = args.plugin
|
|
51
53
|
analysisPluginDir()
|
|
52
54
|
} else {
|
|
53
55
|
console.log()
|
|
54
|
-
console.error(uniI18n.__('pluginUni.
|
|
56
|
+
console.error(uniI18n.__('pluginUni.compileToMpPluginOnlySupportPlatform'))
|
|
55
57
|
console.log()
|
|
56
58
|
process.exit(0)
|
|
57
59
|
}
|
|
@@ -133,7 +135,7 @@ async function build (args, api, options) {
|
|
|
133
135
|
log()
|
|
134
136
|
|
|
135
137
|
if (!runByHBuilderX && !runByAliIde) {
|
|
136
|
-
logWithSpinner(uniI18n.__('pluginUni.startCompileProjectToPlatform', { 0: process.env.UNI_SUB_PLATFORM || process.env.UNI_PLATFORM, 1: process.env.UNI_MP_PLUGIN ? uniI18n.__('
|
|
138
|
+
logWithSpinner(uniI18n.__('pluginUni.startCompileProjectToPlatform', { 0: process.env.UNI_SUB_PLATFORM || process.env.UNI_PLATFORM, 1: process.env.UNI_MP_PLUGIN ? uniI18n.__('plugin') : uniI18n.__('platform') }))
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
const targetDir = api.resolve(options.outputDir)
|
|
@@ -224,7 +226,7 @@ function analysisPluginDir () {
|
|
|
224
226
|
process.exit(0)
|
|
225
227
|
}
|
|
226
228
|
|
|
227
|
-
const pluginJson =
|
|
229
|
+
const pluginJson = parseJson(fs.readFileSync(pluginJsonPath, 'utf-8'), true)
|
|
228
230
|
|
|
229
231
|
// main 入口文件是否存在
|
|
230
232
|
process.env.UNI_MP_PLUGIN_MAIN = pluginJson.main
|
package/generator.js
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
const fs = require('fs')
|
|
2
2
|
const path = require('path')
|
|
3
|
-
|
|
3
|
+
const { compileI18nJsonStr } = require('@dcloudio/uni-i18n')
|
|
4
|
+
const { initI18nOptions } = require('@dcloudio/uni-cli-shared/lib/i18n')
|
|
4
5
|
const assetsDir = 'static'
|
|
5
6
|
|
|
6
7
|
function getAssetsCopyOption (from, options = {}) {
|
|
7
8
|
if (path.isAbsolute(from)) {
|
|
8
9
|
if (fs.existsSync(from)) {
|
|
9
|
-
return Object.assign(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
return Object.assign(
|
|
11
|
+
{
|
|
12
|
+
from,
|
|
13
|
+
to: path.resolve(process.env.UNI_OUTPUT_DIR)
|
|
14
|
+
},
|
|
15
|
+
options
|
|
16
|
+
)
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
const to = from
|
|
16
20
|
from = path.resolve(process.env.UNI_INPUT_DIR, from)
|
|
17
21
|
if (fs.existsSync(from)) {
|
|
18
|
-
return Object.assign(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
return Object.assign(
|
|
23
|
+
{
|
|
24
|
+
from,
|
|
25
|
+
to: path.resolve(process.env.UNI_OUTPUT_DIR, to)
|
|
26
|
+
},
|
|
27
|
+
options
|
|
28
|
+
)
|
|
22
29
|
}
|
|
23
30
|
}
|
|
24
31
|
// 暂未考虑动态添加static目录
|
|
@@ -40,29 +47,38 @@ function getAssetsCopyOptions (assetsDir) {
|
|
|
40
47
|
copyOptions.push(mainAssetsCopyOption)
|
|
41
48
|
}
|
|
42
49
|
// 分包静态资源
|
|
43
|
-
process.UNI_SUBPACKAGES &&
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
process.UNI_SUBPACKAGES &&
|
|
51
|
+
Object.keys(process.UNI_SUBPACKAGES).forEach(root => {
|
|
52
|
+
const subAssetsCopyOption = getAssetsCopyOption(
|
|
53
|
+
path.join(root, assetsDir),
|
|
54
|
+
{
|
|
55
|
+
ignore
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
if (subAssetsCopyOption) {
|
|
59
|
+
copyOptions.push(subAssetsCopyOption)
|
|
60
|
+
}
|
|
46
61
|
})
|
|
47
|
-
if (subAssetsCopyOption) {
|
|
48
|
-
copyOptions.push(subAssetsCopyOption)
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
62
|
return copyOptions
|
|
52
63
|
}
|
|
53
64
|
|
|
54
65
|
function getUniModulesAssetsCopyOptions (assetsDir) {
|
|
55
66
|
const copyOptions = []
|
|
56
67
|
global.uniModules.forEach(module => {
|
|
57
|
-
copyOptions.push(
|
|
68
|
+
copyOptions.push(
|
|
69
|
+
...getAssetsCopyOptions('uni_modules/' + module + '/' + assetsDir)
|
|
70
|
+
)
|
|
58
71
|
})
|
|
59
72
|
return copyOptions
|
|
60
73
|
}
|
|
61
74
|
|
|
62
75
|
function getCopyWebpackPluginOptions (platformOptions, vueOptions) {
|
|
63
|
-
const copyOptions = getAssetsCopyOptions(assetsDir).concat(
|
|
76
|
+
const copyOptions = getAssetsCopyOptions(assetsDir).concat(
|
|
77
|
+
getUniModulesAssetsCopyOptions(assetsDir)
|
|
78
|
+
)
|
|
64
79
|
global.uniPlugin.copyWebpackOptions.forEach(copyWebpackOptions => {
|
|
65
|
-
const platformCopyOptions =
|
|
80
|
+
const platformCopyOptions =
|
|
81
|
+
copyWebpackOptions(platformOptions, vueOptions, copyOptions) || []
|
|
66
82
|
platformCopyOptions.forEach(copyOption => {
|
|
67
83
|
if (typeof copyOption === 'string') {
|
|
68
84
|
copyOption = getAssetsCopyOption(copyOption)
|
|
@@ -76,6 +92,21 @@ function getCopyWebpackPluginOptions (platformOptions, vueOptions) {
|
|
|
76
92
|
to: '[name].[ext]',
|
|
77
93
|
globOptions: {
|
|
78
94
|
ignored: require('./util').getWatchOptions().ignored
|
|
95
|
+
},
|
|
96
|
+
transform (content, path) {
|
|
97
|
+
if (path.endsWith('androidPrivacy.json')) {
|
|
98
|
+
const options = initI18nOptions(
|
|
99
|
+
process.env.UNI_PLATFORM,
|
|
100
|
+
process.env.UNI_INPUT_DIR,
|
|
101
|
+
false,
|
|
102
|
+
true
|
|
103
|
+
)
|
|
104
|
+
if (!options) {
|
|
105
|
+
return content
|
|
106
|
+
}
|
|
107
|
+
return compileI18nJsonStr(content.toString(), options)
|
|
108
|
+
}
|
|
109
|
+
return content
|
|
79
110
|
}
|
|
80
111
|
})
|
|
81
112
|
}
|
|
@@ -85,4 +116,4 @@ function getCopyWebpackPluginOptions (platformOptions, vueOptions) {
|
|
|
85
116
|
module.exports = {
|
|
86
117
|
assetsDir,
|
|
87
118
|
getCopyWebpackPluginOptions
|
|
88
|
-
}
|
|
119
|
+
}
|
package/lib/env.js
CHANGED
|
@@ -23,6 +23,7 @@ const manifestJsonObj = require('@dcloudio/uni-cli-shared/lib/manifest').getMani
|
|
|
23
23
|
|
|
24
24
|
process.env.UNI_APP_ID = manifestJsonObj.appid || ''
|
|
25
25
|
process.env.UNI_APP_NAME = manifestJsonObj.name || ''
|
|
26
|
+
process.env.UNI_PLATFORM = process.env.UNI_PLATFORM || 'h5'
|
|
26
27
|
|
|
27
28
|
// 小程序 vue3 标记
|
|
28
29
|
if (process.env.UNI_PLATFORM.indexOf('mp-') === 0) {
|
|
@@ -58,7 +59,9 @@ if (process.env.UNI_CLOUD_SPACES) {
|
|
|
58
59
|
const hasUniCloudSpace = spaces.length > 0
|
|
59
60
|
if (spaces.length === 1) {
|
|
60
61
|
const space = spaces[0]
|
|
61
|
-
console.log(uniI18n.__('pluginUni.currentProjectDefaultSpaceId', {
|
|
62
|
+
console.log(uniI18n.__('pluginUni.currentProjectDefaultSpaceId', {
|
|
63
|
+
0: space.id
|
|
64
|
+
}))
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
if (
|
|
@@ -66,19 +69,23 @@ if (process.env.UNI_CLOUD_SPACES) {
|
|
|
66
69
|
isH5 &&
|
|
67
70
|
isProduction
|
|
68
71
|
) {
|
|
69
|
-
console.warn(uniI18n.__('pluginUni.unicloudReleaseH5', {
|
|
72
|
+
console.warn(uniI18n.__('pluginUni.unicloudReleaseH5', {
|
|
73
|
+
0: 'https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5'
|
|
74
|
+
}))
|
|
70
75
|
} else if (
|
|
71
76
|
hasUniCloudSpace &&
|
|
72
77
|
isH5 &&
|
|
73
78
|
!isProduction
|
|
74
79
|
) {
|
|
75
|
-
console.warn(uniI18n.__('pluginUni.unicloudShowedRunByHBuilderX', {
|
|
80
|
+
console.warn(uniI18n.__('pluginUni.unicloudShowedRunByHBuilderX', {
|
|
81
|
+
0: 'https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5'
|
|
82
|
+
}))
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
process.env.UNI_CLOUD_PROVIDER = JSON.stringify(spaces.map(space => {
|
|
79
86
|
if (space.clientSecret) {
|
|
80
87
|
return {
|
|
81
|
-
provider: 'aliyun',
|
|
88
|
+
provider: space.provider || 'aliyun',
|
|
82
89
|
spaceName: space.name,
|
|
83
90
|
spaceId: space.id,
|
|
84
91
|
clientSecret: space.clientSecret,
|
|
@@ -86,7 +93,7 @@ if (process.env.UNI_CLOUD_SPACES) {
|
|
|
86
93
|
}
|
|
87
94
|
} else {
|
|
88
95
|
return {
|
|
89
|
-
provider: 'tencent',
|
|
96
|
+
provider: space.provider || 'tencent',
|
|
90
97
|
spaceName: space.name,
|
|
91
98
|
spaceId: space.id
|
|
92
99
|
}
|
|
@@ -122,6 +129,12 @@ if (process.env.NODE_ENV === 'production') { // 发行模式,不启用 cache
|
|
|
122
129
|
delete process.env.UNI_USING_CACHE
|
|
123
130
|
}
|
|
124
131
|
|
|
132
|
+
process.env.BROWSERSLIST_CONFIG = [
|
|
133
|
+
path.resolve(process.env.UNI_INPUT_DIR, '.browserslistrc'),
|
|
134
|
+
path.resolve(process.env.UNI_CLI_CONTEXT, 'package.json'),
|
|
135
|
+
path.resolve(process.cwd(), 'package.json')
|
|
136
|
+
].find(file => fs.existsSync(file))
|
|
137
|
+
|
|
125
138
|
const {
|
|
126
139
|
normalizePath,
|
|
127
140
|
isSupportSubPackages,
|
|
@@ -295,7 +308,9 @@ if (
|
|
|
295
308
|
process.env.UNI_USING_STAT = true
|
|
296
309
|
if (!process.UNI_STAT_CONFIG.appid && process.env.NODE_ENV === 'production') {
|
|
297
310
|
console.log()
|
|
298
|
-
console.warn(uniI18n.__('pluginUni.uniStatisticsNoAppid', {
|
|
311
|
+
console.warn(uniI18n.__('pluginUni.uniStatisticsNoAppid', {
|
|
312
|
+
0: 'https://ask.dcloud.net.cn/article/36303'
|
|
313
|
+
}))
|
|
299
314
|
console.log()
|
|
300
315
|
}
|
|
301
316
|
}
|
|
@@ -324,7 +339,10 @@ let hasNVue = false
|
|
|
324
339
|
const compileModeUrl = 'https://ask.dcloud.net.cn/article/36074'
|
|
325
340
|
if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
326
341
|
const compileMode = (process.env.UNI_USING_V3_NATIVE ? '(v3)' : '') + ':' + (isNVueCompiler ? 'uni-app' : 'weex')
|
|
327
|
-
console.log(uniI18n.__('pluginUni.nvueCompileModeForDetail', {
|
|
342
|
+
console.log(uniI18n.__('pluginUni.nvueCompileModeForDetail', {
|
|
343
|
+
0: compileMode,
|
|
344
|
+
1: compileModeUrl
|
|
345
|
+
}))
|
|
328
346
|
} else if (process.env.UNI_PLATFORM !== 'h5' && process.env.UNI_PLATFORM !== 'quickapp-native') {
|
|
329
347
|
try {
|
|
330
348
|
let info = ''
|
|
@@ -332,7 +350,8 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
|
332
350
|
const pagesPkg = require('@dcloudio/webpack-uni-pages-loader/package.json')
|
|
333
351
|
if (pagesPkg) {
|
|
334
352
|
const v3Tips = `(v3)${uniI18n.__('see')}:https://ask.dcloud.net.cn/article/36599。`
|
|
335
|
-
info = uniI18n.__('compilerVersion') + ':' + pagesPkg['uni-app'].compilerVersion + (process.env.UNI_USING_V3
|
|
353
|
+
info = uniI18n.__('compilerVersion') + ':' + pagesPkg['uni-app'].compilerVersion + (process.env.UNI_USING_V3
|
|
354
|
+
? v3Tips : '')
|
|
336
355
|
}
|
|
337
356
|
if (process.env.UNI_USING_V3) {
|
|
338
357
|
console.log(info)
|
|
@@ -346,7 +365,10 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
|
|
|
346
365
|
if (needWarning) {
|
|
347
366
|
console.log(warningMsg)
|
|
348
367
|
}
|
|
349
|
-
console.log(uniI18n.__('pluginUni.nvueCompileModeForDetail', {
|
|
368
|
+
console.log(uniI18n.__('pluginUni.nvueCompileModeForDetail', {
|
|
369
|
+
0: (isNVueCompiler ? 'uni-app' : 'weex'),
|
|
370
|
+
1: compileModeUrl
|
|
371
|
+
}))
|
|
350
372
|
} else {
|
|
351
373
|
console.log(info)
|
|
352
374
|
if (needWarning) {
|
|
@@ -467,7 +489,9 @@ if (
|
|
|
467
489
|
}
|
|
468
490
|
|
|
469
491
|
if (process.env.UNI_PLATFORM.startsWith('mp-')) {
|
|
470
|
-
console.log(uniI18n.__('pluginUni.mpBrowserKernelDifference', {
|
|
492
|
+
console.log(uniI18n.__('pluginUni.mpBrowserKernelDifference', {
|
|
493
|
+
0: 'https://uniapp.dcloud.io/matter?id=mp'
|
|
494
|
+
}))
|
|
471
495
|
}
|
|
472
496
|
|
|
473
497
|
runByHBuilderX && console.log(uniI18n.__('compiling'))
|
package/lib/mp/index.js
CHANGED
|
@@ -84,11 +84,13 @@ function processWxss (name, assets) {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
const parseRequirePath = path => path.startsWith('common') ? `./${path}` : path
|
|
88
|
+
|
|
87
89
|
function procssJs (name, assets, hasVendor) {
|
|
88
90
|
const dirname = path.dirname(name)
|
|
89
|
-
const runtimeJsCode = `require('${normalizePath(path.relative(dirname, 'common/runtime.js'))}');`
|
|
90
|
-
const vendorJsCode = hasVendor ? `require('${normalizePath(path.relative(dirname, 'common/vendor.js'))}');` : ''
|
|
91
|
-
const mainJsCode = `require('${normalizePath(path.relative(dirname, 'common/main.js'))}');`
|
|
91
|
+
const runtimeJsCode = `require('${normalizePath(parseRequirePath(path.relative(dirname, 'common/runtime.js')))}');`
|
|
92
|
+
const vendorJsCode = hasVendor ? `require('${normalizePath(parseRequirePath(path.relative(dirname, 'common/vendor.js')))}');` : ''
|
|
93
|
+
const mainJsCode = `require('${normalizePath(parseRequirePath(path.relative(dirname, 'common/main.js')))}');`
|
|
92
94
|
const code = `${runtimeJsCode}${vendorJsCode}${mainJsCode}` + assets[name].source().toString()
|
|
93
95
|
assets[name] = {
|
|
94
96
|
size () {
|
|
@@ -172,7 +174,7 @@ module.exports = {
|
|
|
172
174
|
if (process.env.UNI_MP_PLUGIN) {
|
|
173
175
|
// 小程序插件入口使用
|
|
174
176
|
// packages\webpack-uni-mp-loader\lib\plugin\index-new.js -> addMPPluginRequire
|
|
175
|
-
beforeCode +=
|
|
177
|
+
beforeCode += `${process.env.UNI_PLATFORM === 'mp-alipay' ? 'my' : 'wx'}.__webpack_require_${process.env.UNI_MP_PLUGIN.replace(/-/g, '_')}__ = __webpack_require__;`
|
|
176
178
|
|
|
177
179
|
const UNI_MP_PLUGIN_MAIN = process.env.UNI_MP_PLUGIN_MAIN
|
|
178
180
|
if (UNI_MP_PLUGIN_MAIN) {
|
|
@@ -309,4 +311,4 @@ module.exports = {
|
|
|
309
311
|
webpackConfig.plugins.delete('preload')
|
|
310
312
|
webpackConfig.plugins.delete('prefetch')
|
|
311
313
|
}
|
|
312
|
-
}
|
|
314
|
+
}
|
package/lib/util.js
CHANGED
|
@@ -21,11 +21,10 @@ module.exports = {
|
|
|
21
21
|
getWatchOptions () {
|
|
22
22
|
return {
|
|
23
23
|
ignored: [
|
|
24
|
-
|
|
25
|
-
path.resolve(process.env.UNI_INPUT_DIR, '
|
|
26
|
-
path.resolve(process.env.UNI_INPUT_DIR, '.
|
|
27
|
-
path.resolve(process.env.UNI_INPUT_DIR, '.
|
|
28
|
-
path.resolve(process.env.UNI_INPUT_DIR, '.gitignore'),
|
|
24
|
+
path.resolve(process.env.UNI_INPUT_DIR, '*.md'),
|
|
25
|
+
path.resolve(process.env.UNI_INPUT_DIR, '.hbuilderx'),
|
|
26
|
+
path.resolve(process.env.UNI_INPUT_DIR, '.editorconfig'),
|
|
27
|
+
path.resolve(process.env.UNI_INPUT_DIR, '.gitignore'),
|
|
29
28
|
path.resolve(process.env.UNI_INPUT_DIR, 'LICENSE'),
|
|
30
29
|
path.resolve(process.env.UNI_INPUT_DIR, 'unpackage'),
|
|
31
30
|
path.resolve(process.env.UNI_INPUT_DIR, 'uniCloud-aliyun'),
|
|
@@ -35,4 +34,4 @@ module.exports = {
|
|
|
35
34
|
]
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
|
-
}
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-32920210926001",
|
|
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.0-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.0-32920210926001",
|
|
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": "5e7404fe087c97dfc46bfa7b0ab9044a2fa90142"
|
|
41
41
|
}
|