@mpxjs/webpack-plugin 2.10.14-beta.6 → 2.10.14-beta.8
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.
|
@@ -315,7 +315,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
315
315
|
switch (prop) {
|
|
316
316
|
case bgPropMap.image: {
|
|
317
317
|
// background-image 支持背景图/渐变/css var
|
|
318
|
-
if (cssVariableExp.test(value) || urlExp.test(value) || linearExp.test(value)) {
|
|
318
|
+
if (cssVariableExp.test(value) || urlExp.test(value) || linearExp.test(value) || value === 'none') {
|
|
319
319
|
return { prop, value }
|
|
320
320
|
} else {
|
|
321
321
|
error(`Value of ${prop} in ${selector} selector only support value <url()> or <linear-gradient()>, received ${value}, please check again!`)
|
|
@@ -359,6 +359,12 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
359
359
|
error(`Property [${bgPropMap.all}] in ${selector} is abbreviated property and does not support CSS var`)
|
|
360
360
|
return false
|
|
361
361
|
}
|
|
362
|
+
if (value === 'none') {
|
|
363
|
+
return [
|
|
364
|
+
{ prop: bgPropMap.image, value },
|
|
365
|
+
{ prop: bgPropMap.color, value: 'transparent' }
|
|
366
|
+
]
|
|
367
|
+
}
|
|
362
368
|
const bgMap = []
|
|
363
369
|
const values = parseValues(value)
|
|
364
370
|
values.forEach(item => {
|
|
@@ -31,13 +31,16 @@ module.exports = function ({ print }) {
|
|
|
31
31
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
32
32
|
const wxPropValueLog = print({ platform: 'wx', tag: TAG_NAME, isError: false, type: 'value' })
|
|
33
33
|
const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
|
|
34
|
+
const iosValueLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'value' })
|
|
34
35
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
35
36
|
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
|
|
36
37
|
const androidValueLogError = print({ platform: 'android', tag: TAG_NAME, isError: true, type: 'value' })
|
|
38
|
+
const androidValueLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'value' })
|
|
37
39
|
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
38
40
|
const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
|
|
39
41
|
|
|
40
42
|
const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
|
|
43
|
+
const harmonyValueLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'value' })
|
|
41
44
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
42
45
|
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
43
46
|
|
|
@@ -133,19 +136,25 @@ module.exports = function ({ print }) {
|
|
|
133
136
|
ios ({ name, value }) {
|
|
134
137
|
// TODO 此处open-type无其他属性支持了?
|
|
135
138
|
const supported = ['share']
|
|
136
|
-
if (
|
|
139
|
+
if (isMustache(value)) {
|
|
140
|
+
iosValueLog({ name, value })
|
|
141
|
+
} else if (!supported.includes(value)) {
|
|
137
142
|
iosValueLogError({ name, value })
|
|
138
143
|
}
|
|
139
144
|
},
|
|
140
145
|
android ({ name, value }) {
|
|
141
146
|
const supported = ['share']
|
|
142
|
-
if (
|
|
147
|
+
if (isMustache(value)) {
|
|
148
|
+
androidValueLog({ name, value })
|
|
149
|
+
} else if (!supported.includes(value)) {
|
|
143
150
|
androidValueLogError({ name, value })
|
|
144
151
|
}
|
|
145
152
|
},
|
|
146
153
|
harmony ({ name, value }) {
|
|
147
154
|
const supported = ['share']
|
|
148
|
-
if (
|
|
155
|
+
if (isMustache(value)) {
|
|
156
|
+
harmonyValueLog({ name, value })
|
|
157
|
+
} else if (!supported.includes(value)) {
|
|
149
158
|
harmonyValueLogError({ name, value })
|
|
150
159
|
}
|
|
151
160
|
}
|