@weapp-tailwindcss/postcss 1.0.10-alpha.3 → 1.0.11

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.d.mts CHANGED
@@ -1,5 +1,5 @@
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';
1
+ import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-Ca68m5Pt.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-Ca68m5Pt.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-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';
1
+ import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-Ca68m5Pt.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-Ca68m5Pt.js';
3
3
  import postcss from 'postcss';
4
4
  import '@weapp-tailwindcss/mangle';
5
5
  import 'postcss-load-config';
package/dist/index.js CHANGED
@@ -22,6 +22,8 @@ function getDefaultOptions() {
22
22
  }
23
23
  },
24
24
  cssRemoveProperty: true,
25
+ // cssRemoveAtSupports: true,
26
+ // cssRemoveAtMedia: true,
25
27
  cssSelectorReplacement: {
26
28
  root: "page",
27
29
  universal: ["view", "text"]
@@ -668,6 +670,10 @@ var postcssWeappTailwindcssPrePlugin = (options) => {
668
670
  } else {
669
671
  atRule.remove();
670
672
  }
673
+ } else if (atRule.name === "supports") {
674
+ if (/color-mix/.test(atRule.params)) {
675
+ atRule.remove();
676
+ }
671
677
  }
672
678
  }
673
679
  };
package/dist/index.mjs CHANGED
@@ -22,6 +22,8 @@ function getDefaultOptions() {
22
22
  }
23
23
  },
24
24
  cssRemoveProperty: true,
25
+ // cssRemoveAtSupports: true,
26
+ // cssRemoveAtMedia: true,
25
27
  cssSelectorReplacement: {
26
28
  root: "page",
27
29
  universal: ["view", "text"]
@@ -668,6 +670,10 @@ var postcssWeappTailwindcssPrePlugin = (options) => {
668
670
  } else {
669
671
  atRule.remove();
670
672
  }
673
+ } else if (atRule.name === "supports") {
674
+ if (/color-mix/.test(atRule.params)) {
675
+ atRule.remove();
676
+ }
671
677
  }
672
678
  }
673
679
  };
@@ -44,6 +44,11 @@ type IStyleHandlerOptions = {
44
44
  cssRemoveProperty?: boolean;
45
45
  cssRemoveHoverPseudoClass?: boolean;
46
46
  cssPresetEnv?: pluginOptions;
47
+ atRules?: {
48
+ property?: boolean;
49
+ supports?: boolean;
50
+ media?: boolean;
51
+ };
47
52
  } & RequiredStyleHandlerOptions;
48
53
  interface UserDefinedPostcssOptions {
49
54
  cssPreflight?: CssPreflightOptions;
@@ -44,6 +44,11 @@ type IStyleHandlerOptions = {
44
44
  cssRemoveProperty?: boolean;
45
45
  cssRemoveHoverPseudoClass?: boolean;
46
46
  cssPresetEnv?: pluginOptions;
47
+ atRules?: {
48
+ property?: boolean;
49
+ supports?: boolean;
50
+ media?: boolean;
51
+ };
47
52
  } & RequiredStyleHandlerOptions;
48
53
  interface UserDefinedPostcssOptions {
49
54
  cssPreflight?: CssPreflightOptions;
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-PPOinWpH.mjs';
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-Ca68m5Pt.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-PPOinWpH.js';
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-Ca68m5Pt.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.0.10-alpha.3",
3
+ "version": "1.0.11",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",