unocss 0.37.3 → 0.37.4
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/webpack.cjs +24 -0
- package/dist/webpack.d.ts +6 -0
- package/dist/webpack.mjs +13 -0
- package/package.json +32 -16
package/dist/webpack.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const WebpackPlugin = require('@unocss/webpack');
|
|
6
|
+
const presetUno = require('@unocss/preset-uno');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
9
|
+
|
|
10
|
+
const WebpackPlugin__default = /*#__PURE__*/_interopDefaultLegacy(WebpackPlugin);
|
|
11
|
+
const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
|
|
12
|
+
|
|
13
|
+
function UnocssWebpackPlugin(configOrPath) {
|
|
14
|
+
return WebpackPlugin__default(configOrPath, {
|
|
15
|
+
presets: [
|
|
16
|
+
presetUno__default()
|
|
17
|
+
]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports["default"] = UnocssWebpackPlugin;
|
|
22
|
+
for (const k in WebpackPlugin) {
|
|
23
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = WebpackPlugin[k];
|
|
24
|
+
}
|
package/dist/webpack.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import WebpackPlugin__default from '@unocss/webpack';
|
|
2
|
+
export * from '@unocss/webpack';
|
|
3
|
+
import presetUno__default from '@unocss/preset-uno';
|
|
4
|
+
|
|
5
|
+
function UnocssWebpackPlugin(configOrPath) {
|
|
6
|
+
return WebpackPlugin__default(configOrPath, {
|
|
7
|
+
presets: [
|
|
8
|
+
presetUno__default()
|
|
9
|
+
]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { UnocssWebpackPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unocss",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.4",
|
|
4
4
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
"types": "./dist/vite.d.ts",
|
|
73
73
|
"require": "./dist/vite.cjs",
|
|
74
74
|
"import": "./dist/vite.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./webpack": {
|
|
77
|
+
"types": "./dist/webpack.d.ts",
|
|
78
|
+
"require": "./dist/webpack.cjs",
|
|
79
|
+
"import": "./dist/webpack.mjs"
|
|
75
80
|
}
|
|
76
81
|
},
|
|
77
82
|
"main": "dist/index.cjs",
|
|
@@ -84,22 +89,33 @@
|
|
|
84
89
|
"engines": {
|
|
85
90
|
"node": ">=14"
|
|
86
91
|
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"@unocss/webpack": "0.37.4"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"@unocss/webpack": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
87
100
|
"dependencies": {
|
|
88
|
-
"@unocss/cli": "0.37.
|
|
89
|
-
"@unocss/core": "0.37.
|
|
90
|
-
"@unocss/preset-attributify": "0.37.
|
|
91
|
-
"@unocss/preset-icons": "0.37.
|
|
92
|
-
"@unocss/preset-mini": "0.37.
|
|
93
|
-
"@unocss/preset-tagify": "0.37.
|
|
94
|
-
"@unocss/preset-typography": "0.37.
|
|
95
|
-
"@unocss/preset-uno": "0.37.
|
|
96
|
-
"@unocss/preset-web-fonts": "0.37.
|
|
97
|
-
"@unocss/preset-wind": "0.37.
|
|
98
|
-
"@unocss/reset": "0.37.
|
|
99
|
-
"@unocss/transformer-compile-class": "0.37.
|
|
100
|
-
"@unocss/transformer-directives": "0.37.
|
|
101
|
-
"@unocss/transformer-variant-group": "0.37.
|
|
102
|
-
"@unocss/vite": "0.37.
|
|
101
|
+
"@unocss/cli": "0.37.4",
|
|
102
|
+
"@unocss/core": "0.37.4",
|
|
103
|
+
"@unocss/preset-attributify": "0.37.4",
|
|
104
|
+
"@unocss/preset-icons": "0.37.4",
|
|
105
|
+
"@unocss/preset-mini": "0.37.4",
|
|
106
|
+
"@unocss/preset-tagify": "0.37.4",
|
|
107
|
+
"@unocss/preset-typography": "0.37.4",
|
|
108
|
+
"@unocss/preset-uno": "0.37.4",
|
|
109
|
+
"@unocss/preset-web-fonts": "0.37.4",
|
|
110
|
+
"@unocss/preset-wind": "0.37.4",
|
|
111
|
+
"@unocss/reset": "0.37.4",
|
|
112
|
+
"@unocss/transformer-compile-class": "0.37.4",
|
|
113
|
+
"@unocss/transformer-directives": "0.37.4",
|
|
114
|
+
"@unocss/transformer-variant-group": "0.37.4",
|
|
115
|
+
"@unocss/vite": "0.37.4"
|
|
116
|
+
},
|
|
117
|
+
"devDependencies": {
|
|
118
|
+
"@unocss/webpack": "0.37.4"
|
|
103
119
|
},
|
|
104
120
|
"scripts": {
|
|
105
121
|
"build": "unbuild",
|