@unocss/preset-wind 0.45.21 → 0.45.22
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.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1130,6 +1130,7 @@ const variants = (options) => [
|
|
|
1130
1130
|
const presetWind = (options = {}) => {
|
|
1131
1131
|
options.dark = options.dark ?? "class";
|
|
1132
1132
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
1133
|
+
options.preflight = options.preflight ?? true;
|
|
1133
1134
|
return {
|
|
1134
1135
|
name: "@unocss/preset-wind",
|
|
1135
1136
|
theme,
|
|
@@ -1137,7 +1138,7 @@ const presetWind = (options = {}) => {
|
|
|
1137
1138
|
shortcuts,
|
|
1138
1139
|
variants: variants(options),
|
|
1139
1140
|
options,
|
|
1140
|
-
preflights: presetMini.preflights,
|
|
1141
|
+
preflights: options.preflight ? presetMini.preflights : [],
|
|
1141
1142
|
prefix: options.prefix
|
|
1142
1143
|
};
|
|
1143
1144
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1127,6 +1127,7 @@ const variants = (options) => [
|
|
|
1127
1127
|
const presetWind = (options = {}) => {
|
|
1128
1128
|
options.dark = options.dark ?? "class";
|
|
1129
1129
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
1130
|
+
options.preflight = options.preflight ?? true;
|
|
1130
1131
|
return {
|
|
1131
1132
|
name: "@unocss/preset-wind",
|
|
1132
1133
|
theme,
|
|
@@ -1134,7 +1135,7 @@ const presetWind = (options = {}) => {
|
|
|
1134
1135
|
shortcuts,
|
|
1135
1136
|
variants: variants(options),
|
|
1136
1137
|
options,
|
|
1137
|
-
preflights,
|
|
1138
|
+
preflights: options.preflight ? preflights : [],
|
|
1138
1139
|
prefix: options.prefix
|
|
1139
1140
|
};
|
|
1140
1141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.22",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"*.css"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.45.
|
|
39
|
-
"@unocss/preset-mini": "0.45.
|
|
38
|
+
"@unocss/core": "0.45.22",
|
|
39
|
+
"@unocss/preset-mini": "0.45.22"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|