@weapp-tailwindcss/postcss 1.0.20 → 1.0.21
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/dist/index.js +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -191,9 +191,7 @@ function createRuleTransform(rule, options) {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
if (uniAppX) {
|
|
194
|
-
|
|
195
|
-
selector.remove();
|
|
196
|
-
}
|
|
194
|
+
selector.remove();
|
|
197
195
|
}
|
|
198
196
|
} else if (selector.type === "combinator") {
|
|
199
197
|
if (selector.value === ">") {
|
|
@@ -216,6 +214,14 @@ function createRuleTransform(rule, options) {
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
}
|
|
217
|
+
} else if (selector.type === "tag") {
|
|
218
|
+
if (uniAppX) {
|
|
219
|
+
selector.remove();
|
|
220
|
+
}
|
|
221
|
+
} else if (selector.type === "attribute") {
|
|
222
|
+
if (uniAppX) {
|
|
223
|
+
selector.remove();
|
|
224
|
+
}
|
|
219
225
|
}
|
|
220
226
|
});
|
|
221
227
|
selectors.walk((selector) => {
|
package/dist/index.mjs
CHANGED
|
@@ -191,9 +191,7 @@ function createRuleTransform(rule, options) {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
if (uniAppX) {
|
|
194
|
-
|
|
195
|
-
selector.remove();
|
|
196
|
-
}
|
|
194
|
+
selector.remove();
|
|
197
195
|
}
|
|
198
196
|
} else if (selector.type === "combinator") {
|
|
199
197
|
if (selector.value === ">") {
|
|
@@ -216,6 +214,14 @@ function createRuleTransform(rule, options) {
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
}
|
|
217
|
+
} else if (selector.type === "tag") {
|
|
218
|
+
if (uniAppX) {
|
|
219
|
+
selector.remove();
|
|
220
|
+
}
|
|
221
|
+
} else if (selector.type === "attribute") {
|
|
222
|
+
if (uniAppX) {
|
|
223
|
+
selector.remove();
|
|
224
|
+
}
|
|
219
225
|
}
|
|
220
226
|
});
|
|
221
227
|
selectors.walk((selector) => {
|