@unocss/astro 0.52.7 → 0.53.1
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -49,9 +49,10 @@ function UnoCSSAstroIntegration(options = {}, defaults) {
|
|
|
49
49
|
hooks: {
|
|
50
50
|
"astro:config:setup": async ({ config, updateConfig, injectScript }) => {
|
|
51
51
|
var _a;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
options.
|
|
52
|
+
const source = node_path.resolve(node_url.fileURLToPath(config.srcDir), "components/**/*").replace(/\\/g, "/");
|
|
53
|
+
options.content || (options.content = {});
|
|
54
|
+
(_a = options.content).filesystem || (_a.filesystem = []);
|
|
55
|
+
options.content.filesystem.push(source);
|
|
55
56
|
const injects = [];
|
|
56
57
|
if (injectReset) {
|
|
57
58
|
const resetPath = typeof injectReset === "string" ? injectReset : "@unocss/reset/tailwind.css";
|
package/dist/index.mjs
CHANGED
|
@@ -43,9 +43,10 @@ function UnoCSSAstroIntegration(options = {}, defaults) {
|
|
|
43
43
|
hooks: {
|
|
44
44
|
"astro:config:setup": async ({ config, updateConfig, injectScript }) => {
|
|
45
45
|
var _a;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options.
|
|
46
|
+
const source = resolve(fileURLToPath(config.srcDir), "components/**/*").replace(/\\/g, "/");
|
|
47
|
+
options.content || (options.content = {});
|
|
48
|
+
(_a = options.content).filesystem || (_a.filesystem = []);
|
|
49
|
+
options.content.filesystem.push(source);
|
|
49
50
|
const injects = [];
|
|
50
51
|
if (injectReset) {
|
|
51
52
|
const resetPath = typeof injectReset === "string" ? injectReset : "@unocss/reset/tailwind.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.1",
|
|
4
4
|
"description": "UnoCSS integration for Astro",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@unocss/core": "0.
|
|
41
|
-
"@unocss/reset": "0.
|
|
42
|
-
"@unocss/vite": "0.
|
|
40
|
+
"@unocss/core": "0.53.1",
|
|
41
|
+
"@unocss/reset": "0.53.1",
|
|
42
|
+
"@unocss/vite": "0.53.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"astro": "^2.5.
|
|
45
|
+
"astro": "^2.5.7"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "unbuild",
|