@unocss/preset-mini 0.45.21 → 0.45.23
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.d.ts +6 -0
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ const preflights = [
|
|
|
26
26
|
const presetMini = (options = {}) => {
|
|
27
27
|
options.dark = options.dark ?? "class";
|
|
28
28
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
29
|
+
options.preflight = options.preflight ?? true;
|
|
29
30
|
return {
|
|
30
31
|
name: "@unocss/preset-mini",
|
|
31
32
|
theme: _default.theme,
|
|
@@ -33,7 +34,7 @@ const presetMini = (options = {}) => {
|
|
|
33
34
|
variants: _default$2.variants(options),
|
|
34
35
|
options,
|
|
35
36
|
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
|
|
36
|
-
preflights,
|
|
37
|
+
preflights: options.preflight ? preflights : [],
|
|
37
38
|
prefix: options.prefix
|
|
38
39
|
};
|
|
39
40
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,12 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
46
46
|
* @default undefined
|
|
47
47
|
*/
|
|
48
48
|
prefix?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Generate preflight
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
preflight?: boolean;
|
|
49
55
|
}
|
|
50
56
|
declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
|
|
51
57
|
|
package/dist/index.mjs
CHANGED
|
@@ -23,6 +23,7 @@ const preflights = [
|
|
|
23
23
|
const presetMini = (options = {}) => {
|
|
24
24
|
options.dark = options.dark ?? "class";
|
|
25
25
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
26
|
+
options.preflight = options.preflight ?? true;
|
|
26
27
|
return {
|
|
27
28
|
name: "@unocss/preset-mini",
|
|
28
29
|
theme,
|
|
@@ -30,7 +31,7 @@ const presetMini = (options = {}) => {
|
|
|
30
31
|
variants: variants(options),
|
|
31
32
|
options,
|
|
32
33
|
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
|
|
33
|
-
preflights,
|
|
34
|
+
preflights: options.preflight ? preflights : [],
|
|
34
35
|
prefix: options.prefix
|
|
35
36
|
};
|
|
36
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.23",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.45.
|
|
64
|
+
"@unocss/core": "0.45.23"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|