@weapp-tailwindcss/postcss 1.0.7-alpha.0 → 1.0.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.
- package/README.md +5 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +33 -25
- package/dist/index.mjs +23 -15
- package/dist/{types-DiXihH4o.d.mts → types-PPOinWpH.d.mts} +2 -0
- package/dist/{types-DiXihH4o.d.ts → types-PPOinWpH.d.ts} +2 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
>
|
|
26
26
|
> 小程序原生工具链 `weapp-vite` 已经发布,使用它改善你的原生小程序开发体验吧,更多详见 [官方文档](https://vite.icebreaker.top/)
|
|
27
27
|
|
|
28
|
-
\[[文档地址](https://tw.icebreaker.top)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
|
|
28
|
+
\[[文档地址](https://tw.icebreaker.top)\] \| \[[备用文档地址](https://ice-tw.netlify.app/)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
|
|
29
29
|
|
|
30
30
|
- [特性](#特性)
|
|
31
31
|
- [版本对应](#版本对应)
|
|
@@ -56,7 +56,10 @@
|
|
|
56
56
|
|
|
57
57
|
## 版本对应
|
|
58
58
|
|
|
59
|
-
目前,`weapp-tailwindcss` 的 `
|
|
59
|
+
目前,`weapp-tailwindcss` 的 `4.x` 版本
|
|
60
|
+
|
|
61
|
+
- 支持最新版本的 `tailwindcss v4` 和 `v3` 还有 `v2 jit` 版本。
|
|
62
|
+
- 支持 `webpack5`,`webpack4`, `vite` 和 `gulp` 这些打包工具,也支持纯 `Nodejs` API 的方式,集成到你自己的构建工具中。
|
|
60
63
|
|
|
61
64
|
> 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。另外请确保你的 `nodejs` 版本 `>=16.6.0`。目前低于 `16` 的长期维护版本(`偶数版本`) 都已经结束了生命周期,建议安装 `nodejs` 的 `LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
|
|
62
65
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-
|
|
2
|
-
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-
|
|
1
|
+
import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-PPOinWpH.mjs';
|
|
2
|
+
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-PPOinWpH.mjs';
|
|
3
3
|
import postcss from 'postcss';
|
|
4
4
|
import '@weapp-tailwindcss/mangle';
|
|
5
5
|
import 'postcss-load-config';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-
|
|
2
|
-
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-
|
|
1
|
+
import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-PPOinWpH.js';
|
|
2
|
+
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-PPOinWpH.js';
|
|
3
3
|
import postcss from 'postcss';
|
|
4
4
|
import '@weapp-tailwindcss/mangle';
|
|
5
5
|
import 'postcss-load-config';
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,8 @@ function getDefaultOptions() {
|
|
|
20
20
|
autoprefixer: {
|
|
21
21
|
add: false
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
cssRemoveProperty: true
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -44,6 +45,9 @@ function createContext() {
|
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
// src/plugins/post.ts
|
|
49
|
+
|
|
50
|
+
|
|
47
51
|
// src/constants.ts
|
|
48
52
|
var postcssPlugin = "postcss-weapp-tailwindcss-rename-plugin";
|
|
49
53
|
|
|
@@ -289,14 +293,14 @@ function getFallbackRemove(rule) {
|
|
|
289
293
|
|
|
290
294
|
// src/plugins/post.ts
|
|
291
295
|
var OklabSuffix = "in oklab";
|
|
292
|
-
var postcssWeappTailwindcssPostPlugin = (options
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
+
var postcssWeappTailwindcssPostPlugin = (options) => {
|
|
297
|
+
const opts = _shared.defu.call(void 0, options, {
|
|
298
|
+
isMainChunk: true
|
|
299
|
+
});
|
|
296
300
|
const p = {
|
|
297
301
|
postcssPlugin
|
|
298
302
|
};
|
|
299
|
-
if (isMainChunk) {
|
|
303
|
+
if (opts.isMainChunk) {
|
|
300
304
|
p.OnceExit = (root) => {
|
|
301
305
|
root.walkRules((rule) => {
|
|
302
306
|
getFallbackRemove(rule).transformSync(rule, {
|
|
@@ -312,17 +316,23 @@ var postcssWeappTailwindcssPostPlugin = (options = {
|
|
|
312
316
|
}
|
|
313
317
|
});
|
|
314
318
|
});
|
|
319
|
+
opts.cssRemoveProperty && root.walkAtRules("property", (rule) => {
|
|
320
|
+
rule.remove();
|
|
321
|
+
});
|
|
315
322
|
};
|
|
316
323
|
}
|
|
317
|
-
if (typeof customRuleCallback === "function") {
|
|
324
|
+
if (typeof opts.customRuleCallback === "function") {
|
|
318
325
|
p.Rule = (rule) => {
|
|
319
|
-
customRuleCallback(rule,
|
|
326
|
+
_optionalChain([opts, 'access', _24 => _24.customRuleCallback, 'optionalCall', _25 => _25(rule, opts)]);
|
|
320
327
|
};
|
|
321
328
|
}
|
|
322
329
|
return p;
|
|
323
330
|
};
|
|
324
331
|
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
325
332
|
|
|
333
|
+
// src/plugins/pre.ts
|
|
334
|
+
|
|
335
|
+
|
|
326
336
|
// src/mp.ts
|
|
327
337
|
|
|
328
338
|
|
|
@@ -607,7 +617,7 @@ function remakeCssVarSelector(selectors, options) {
|
|
|
607
617
|
function commonChunkPreflight(node, options) {
|
|
608
618
|
const { ctx, cssInjectPreflight, injectAdditionalCssVarScope } = options;
|
|
609
619
|
if (testIfVariablesScope(node)) {
|
|
610
|
-
_optionalChain([ctx, 'optionalAccess',
|
|
620
|
+
_optionalChain([ctx, 'optionalAccess', _26 => _26.markVariablesScope, 'call', _27 => _27(node)]);
|
|
611
621
|
node.selectors = remakeCssVarSelector(node.selectors, options);
|
|
612
622
|
node.before(makePseudoVarRule());
|
|
613
623
|
if (typeof cssInjectPreflight === "function") {
|
|
@@ -632,14 +642,12 @@ function commonChunkPreflight(node, options) {
|
|
|
632
642
|
function isAtMediaHover(atRule) {
|
|
633
643
|
return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
|
|
634
644
|
}
|
|
635
|
-
var postcssWeappTailwindcssPrePlugin = (options
|
|
636
|
-
isMainChunk: true
|
|
637
|
-
}) => {
|
|
638
|
-
const { isMainChunk } = options;
|
|
645
|
+
var postcssWeappTailwindcssPrePlugin = (options) => {
|
|
646
|
+
const opts = _shared.defu.call(void 0, options, { isMainChunk: true });
|
|
639
647
|
const p = {
|
|
640
648
|
postcssPlugin,
|
|
641
649
|
Rule(rule) {
|
|
642
|
-
ruleTransformSync(rule,
|
|
650
|
+
ruleTransformSync(rule, opts);
|
|
643
651
|
},
|
|
644
652
|
AtRule(atRule) {
|
|
645
653
|
if (isAtMediaHover(atRule)) {
|
|
@@ -651,10 +659,10 @@ var postcssWeappTailwindcssPrePlugin = (options = {
|
|
|
651
659
|
}
|
|
652
660
|
}
|
|
653
661
|
};
|
|
654
|
-
if (isMainChunk) {
|
|
662
|
+
if (opts.isMainChunk) {
|
|
655
663
|
p.Once = (root) => {
|
|
656
664
|
root.walkRules((rule) => {
|
|
657
|
-
commonChunkPreflight(rule,
|
|
665
|
+
commonChunkPreflight(rule, opts);
|
|
658
666
|
});
|
|
659
667
|
};
|
|
660
668
|
}
|
|
@@ -671,7 +679,7 @@ function compare(e3, t2) {
|
|
|
671
679
|
return e3.a === t2.a ? e3.b === t2.b ? e3.c - t2.c : e3.b - t2.b : e3.a - t2.a;
|
|
672
680
|
}
|
|
673
681
|
function selectorSpecificity(t2, s) {
|
|
674
|
-
const i = _optionalChain([s, 'optionalAccess',
|
|
682
|
+
const i = _optionalChain([s, 'optionalAccess', _28 => _28.customSpecificity, 'optionalCall', _29 => _29(t2)]);
|
|
675
683
|
if (i) return i;
|
|
676
684
|
if (!t2) return { a: 0, b: 0, c: 0 };
|
|
677
685
|
let c = 0, n = 0, o2 = 0;
|
|
@@ -747,7 +755,7 @@ function selectorSpecificity(t2, s) {
|
|
|
747
755
|
case ":active-view-transition-type":
|
|
748
756
|
return { a: 0, b: 1, c: 0 };
|
|
749
757
|
}
|
|
750
|
-
else _postcssselectorparser2.default.isContainer(t2) && _optionalChain([t2, 'access',
|
|
758
|
+
else _postcssselectorparser2.default.isContainer(t2) && _optionalChain([t2, 'access', _30 => _30.nodes, 'optionalAccess', _31 => _31.length]) > 0 && t2.nodes.forEach((e3) => {
|
|
751
759
|
const t3 = selectorSpecificity(e3, s);
|
|
752
760
|
c += t3.a, n += t3.b, o2 += t3.c;
|
|
753
761
|
});
|
|
@@ -775,8 +783,8 @@ function alwaysValidSelector(s) {
|
|
|
775
783
|
const o2 = _postcssselectorparser2.default.call(void 0, ).astSync(s);
|
|
776
784
|
let t2 = true;
|
|
777
785
|
return o2.walk((e3) => {
|
|
778
|
-
if ("class" !== e3.type && "comment" !== e3.type && "id" !== e3.type && "root" !== e3.type && "selector" !== e3.type && "string" !== e3.type && "tag" !== e3.type && "universal" !== e3.type && ("attribute" !== e3.type || e3.insensitive) && ("combinator" !== e3.type || "+" !== e3.value && ">" !== e3.value && "~" !== e3.value && " " !== e3.value) && ("pseudo" !== e3.type || _optionalChain([e3, 'access',
|
|
779
|
-
if ("pseudo" === e3.type && 1 === _optionalChain([e3, 'access',
|
|
786
|
+
if ("class" !== e3.type && "comment" !== e3.type && "id" !== e3.type && "root" !== e3.type && "selector" !== e3.type && "string" !== e3.type && "tag" !== e3.type && "universal" !== e3.type && ("attribute" !== e3.type || e3.insensitive) && ("combinator" !== e3.type || "+" !== e3.value && ">" !== e3.value && "~" !== e3.value && " " !== e3.value) && ("pseudo" !== e3.type || _optionalChain([e3, 'access', _32 => _32.nodes, 'optionalAccess', _33 => _33.length]) || ":hover" !== e3.value.toLowerCase() && ":focus" !== e3.value.toLowerCase())) {
|
|
787
|
+
if ("pseudo" === e3.type && 1 === _optionalChain([e3, 'access', _34 => _34.nodes, 'optionalAccess', _35 => _35.length]) && ":not" === e3.value.toLowerCase()) {
|
|
780
788
|
let s2 = true;
|
|
781
789
|
if (e3.nodes[0].walkCombinators(() => {
|
|
782
790
|
s2 = false;
|
|
@@ -888,8 +896,8 @@ function splitSelectors(o2, t2, n = 0) {
|
|
|
888
896
|
if (_postcssselectorparser2.default.call(void 0, ).astSync(o3).walkPseudos((e3) => {
|
|
889
897
|
if (":is" !== e3.value.toLowerCase() || !e3.nodes || !e3.nodes.length) return;
|
|
890
898
|
if ("selector" === e3.nodes[0].type && 0 === e3.nodes[0].nodes.length) return;
|
|
891
|
-
if ("pseudo" === _optionalChain([e3, 'access',
|
|
892
|
-
if ("pseudo" === _optionalChain([e3, 'access',
|
|
899
|
+
if ("pseudo" === _optionalChain([e3, 'access', _36 => _36.parent, 'optionalAccess', _37 => _37.parent, 'optionalAccess', _38 => _38.type]) && ":not" === _optionalChain([e3, 'access', _39 => _39.parent, 'optionalAccess', _40 => _40.parent, 'optionalAccess', _41 => _41.value, 'optionalAccess', _42 => _42.toLowerCase, 'call', _43 => _43()])) return void i.push([{ start: e3.parent.parent.sourceIndex, end: e3.parent.parent.sourceIndex + e3.parent.parent.toString().length, option: `:not(${e3.nodes.toString()})` }]);
|
|
900
|
+
if ("pseudo" === _optionalChain([e3, 'access', _44 => _44.parent, 'optionalAccess', _45 => _45.parent, 'optionalAccess', _46 => _46.type]) && ":has" === _optionalChain([e3, 'access', _47 => _47.parent, 'optionalAccess', _48 => _48.parent, 'optionalAccess', _49 => _49.value, 'optionalAccess', _50 => _50.toLowerCase, 'call', _51 => _51()])) return void (e3.value = ":-csstools-matches");
|
|
893
901
|
let o4 = e3.parent;
|
|
894
902
|
for (; o4; ) {
|
|
895
903
|
if (o4.value && ":is" === o4.value.toLowerCase() && "pseudo" === o4.type) return void (a = true);
|
|
@@ -911,7 +919,7 @@ function splitSelectors(o2, t2, n = 0) {
|
|
|
911
919
|
let s = "";
|
|
912
920
|
for (let t3 = 0; t3 < e3.length; t3++) {
|
|
913
921
|
const n2 = e3[t3];
|
|
914
|
-
s += o3.substring(_optionalChain([e3, 'access',
|
|
922
|
+
s += o3.substring(_optionalChain([e3, 'access', _52 => _52[t3 - 1], 'optionalAccess', _53 => _53.end]) || 0, e3[t3].start), s += ":-csstools-matches(" + n2.option + ")", t3 === e3.length - 1 && (s += o3.substring(e3[t3].end));
|
|
915
923
|
}
|
|
916
924
|
c.push(s);
|
|
917
925
|
}), a && n < 10 && (c = splitSelectors(c, t2, n + 1)), c;
|
|
@@ -972,7 +980,7 @@ function getPlugins(options) {
|
|
|
972
980
|
const ctx = createContext();
|
|
973
981
|
options.ctx = ctx;
|
|
974
982
|
const plugins = [
|
|
975
|
-
..._nullishCoalesce(_optionalChain([options, 'access',
|
|
983
|
+
..._nullishCoalesce(_optionalChain([options, 'access', _54 => _54.postcssOptions, 'optionalAccess', _55 => _55.plugins]), () => ( [])),
|
|
976
984
|
postcssWeappTailwindcssPrePlugin(options),
|
|
977
985
|
_postcsspresetenv2.default.call(void 0, options.cssPresetEnv)
|
|
978
986
|
];
|
|
@@ -1016,7 +1024,7 @@ function styleHandler(rawSource, options) {
|
|
|
1016
1024
|
getPlugins(options)
|
|
1017
1025
|
).process(
|
|
1018
1026
|
rawSource,
|
|
1019
|
-
_nullishCoalesce(_optionalChain([options, 'access',
|
|
1027
|
+
_nullishCoalesce(_optionalChain([options, 'access', _56 => _56.postcssOptions, 'optionalAccess', _57 => _57.options]), () => ( {
|
|
1020
1028
|
from: void 0
|
|
1021
1029
|
}))
|
|
1022
1030
|
).async();
|
package/dist/index.mjs
CHANGED
|
@@ -20,7 +20,8 @@ function getDefaultOptions() {
|
|
|
20
20
|
autoprefixer: {
|
|
21
21
|
add: false
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
cssRemoveProperty: true
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -44,6 +45,9 @@ function createContext() {
|
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
// src/plugins/post.ts
|
|
49
|
+
import { defu } from "@weapp-tailwindcss/shared";
|
|
50
|
+
|
|
47
51
|
// src/constants.ts
|
|
48
52
|
var postcssPlugin = "postcss-weapp-tailwindcss-rename-plugin";
|
|
49
53
|
|
|
@@ -289,14 +293,14 @@ function getFallbackRemove(rule) {
|
|
|
289
293
|
|
|
290
294
|
// src/plugins/post.ts
|
|
291
295
|
var OklabSuffix = "in oklab";
|
|
292
|
-
var postcssWeappTailwindcssPostPlugin = (options
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
+
var postcssWeappTailwindcssPostPlugin = (options) => {
|
|
297
|
+
const opts = defu(options, {
|
|
298
|
+
isMainChunk: true
|
|
299
|
+
});
|
|
296
300
|
const p = {
|
|
297
301
|
postcssPlugin
|
|
298
302
|
};
|
|
299
|
-
if (isMainChunk) {
|
|
303
|
+
if (opts.isMainChunk) {
|
|
300
304
|
p.OnceExit = (root) => {
|
|
301
305
|
root.walkRules((rule) => {
|
|
302
306
|
getFallbackRemove(rule).transformSync(rule, {
|
|
@@ -312,17 +316,23 @@ var postcssWeappTailwindcssPostPlugin = (options = {
|
|
|
312
316
|
}
|
|
313
317
|
});
|
|
314
318
|
});
|
|
319
|
+
opts.cssRemoveProperty && root.walkAtRules("property", (rule) => {
|
|
320
|
+
rule.remove();
|
|
321
|
+
});
|
|
315
322
|
};
|
|
316
323
|
}
|
|
317
|
-
if (typeof customRuleCallback === "function") {
|
|
324
|
+
if (typeof opts.customRuleCallback === "function") {
|
|
318
325
|
p.Rule = (rule) => {
|
|
319
|
-
customRuleCallback(rule,
|
|
326
|
+
opts.customRuleCallback?.(rule, opts);
|
|
320
327
|
};
|
|
321
328
|
}
|
|
322
329
|
return p;
|
|
323
330
|
};
|
|
324
331
|
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
325
332
|
|
|
333
|
+
// src/plugins/pre.ts
|
|
334
|
+
import { defu as defu2 } from "@weapp-tailwindcss/shared";
|
|
335
|
+
|
|
326
336
|
// src/mp.ts
|
|
327
337
|
import { Declaration, Rule } from "postcss";
|
|
328
338
|
|
|
@@ -632,14 +642,12 @@ function commonChunkPreflight(node, options) {
|
|
|
632
642
|
function isAtMediaHover(atRule) {
|
|
633
643
|
return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
|
|
634
644
|
}
|
|
635
|
-
var postcssWeappTailwindcssPrePlugin = (options
|
|
636
|
-
isMainChunk: true
|
|
637
|
-
}) => {
|
|
638
|
-
const { isMainChunk } = options;
|
|
645
|
+
var postcssWeappTailwindcssPrePlugin = (options) => {
|
|
646
|
+
const opts = defu2(options, { isMainChunk: true });
|
|
639
647
|
const p = {
|
|
640
648
|
postcssPlugin,
|
|
641
649
|
Rule(rule) {
|
|
642
|
-
ruleTransformSync(rule,
|
|
650
|
+
ruleTransformSync(rule, opts);
|
|
643
651
|
},
|
|
644
652
|
AtRule(atRule) {
|
|
645
653
|
if (isAtMediaHover(atRule)) {
|
|
@@ -651,10 +659,10 @@ var postcssWeappTailwindcssPrePlugin = (options = {
|
|
|
651
659
|
}
|
|
652
660
|
}
|
|
653
661
|
};
|
|
654
|
-
if (isMainChunk) {
|
|
662
|
+
if (opts.isMainChunk) {
|
|
655
663
|
p.Once = (root) => {
|
|
656
664
|
root.walkRules((rule) => {
|
|
657
|
-
commonChunkPreflight(rule,
|
|
665
|
+
commonChunkPreflight(rule, opts);
|
|
658
666
|
});
|
|
659
667
|
};
|
|
660
668
|
}
|
|
@@ -41,6 +41,7 @@ type IStyleHandlerOptions = {
|
|
|
41
41
|
mangleContext?: IMangleScopeContext;
|
|
42
42
|
ctx?: IContext;
|
|
43
43
|
postcssOptions?: LoadedPostcssOptions;
|
|
44
|
+
cssRemoveProperty?: boolean;
|
|
44
45
|
cssRemoveHoverPseudoClass?: boolean;
|
|
45
46
|
cssPresetEnv?: pluginOptions;
|
|
46
47
|
} & RequiredStyleHandlerOptions;
|
|
@@ -57,6 +58,7 @@ interface UserDefinedPostcssOptions {
|
|
|
57
58
|
rem2rpx?: boolean | UserDefinedOptions;
|
|
58
59
|
postcssOptions?: LoadedPostcssOptions;
|
|
59
60
|
cssRemoveHoverPseudoClass?: boolean;
|
|
61
|
+
cssRemoveProperty?: boolean;
|
|
60
62
|
customRuleCallback?: CustomRuleCallback;
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -41,6 +41,7 @@ type IStyleHandlerOptions = {
|
|
|
41
41
|
mangleContext?: IMangleScopeContext;
|
|
42
42
|
ctx?: IContext;
|
|
43
43
|
postcssOptions?: LoadedPostcssOptions;
|
|
44
|
+
cssRemoveProperty?: boolean;
|
|
44
45
|
cssRemoveHoverPseudoClass?: boolean;
|
|
45
46
|
cssPresetEnv?: pluginOptions;
|
|
46
47
|
} & RequiredStyleHandlerOptions;
|
|
@@ -57,6 +58,7 @@ interface UserDefinedPostcssOptions {
|
|
|
57
58
|
rem2rpx?: boolean | UserDefinedOptions;
|
|
58
59
|
postcssOptions?: LoadedPostcssOptions;
|
|
59
60
|
cssRemoveHoverPseudoClass?: boolean;
|
|
61
|
+
cssRemoveProperty?: boolean;
|
|
60
62
|
customRuleCallback?: CustomRuleCallback;
|
|
61
63
|
}
|
|
62
64
|
|
package/dist/types.d.mts
CHANGED
|
@@ -3,4 +3,4 @@ import 'postcss';
|
|
|
3
3
|
import 'postcss-load-config';
|
|
4
4
|
import 'postcss-preset-env';
|
|
5
5
|
import 'postcss-rem-to-responsive-pixel';
|
|
6
|
-
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-
|
|
6
|
+
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-PPOinWpH.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import 'postcss';
|
|
|
3
3
|
import 'postcss-load-config';
|
|
4
4
|
import 'postcss-preset-env';
|
|
5
5
|
import 'postcss-rem-to-responsive-pixel';
|
|
6
|
-
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-
|
|
6
|
+
export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-PPOinWpH.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "@weapp-tailwindcss/postcss",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"postcss-preset-env": "^10.1.5",
|
|
39
39
|
"postcss-rem-to-responsive-pixel": "~6.0.2",
|
|
40
40
|
"postcss-selector-parser": "~7.1.0",
|
|
41
|
-
"@weapp-tailwindcss/shared": "1.0.2
|
|
41
|
+
"@weapp-tailwindcss/shared": "1.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@weapp-tailwindcss/mangle": "1.0.3
|
|
44
|
+
"@weapp-tailwindcss/mangle": "1.0.3"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "tsup --watch --sourcemap",
|