@unocss/svelte-scoped 66.6.4 → 66.6.6-beta.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/vite.mjs +7 -5
- package/package.json +6 -6
package/dist/vite.mjs
CHANGED
|
@@ -202,13 +202,15 @@ function GlobalStylesPlugin(ctx, injectReset) {
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
async buildStart() {
|
|
205
|
+
if (viteConfig.command === "build") unoCssFileReferenceId = this.emitFile({
|
|
206
|
+
type: "asset",
|
|
207
|
+
name: GLOBAL_STYLES_CSS_FILE_NAME
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
async buildEnd() {
|
|
205
211
|
if (viteConfig.command === "build") {
|
|
206
212
|
const css = await generateGlobalCss(ctx.uno, injectReset);
|
|
207
|
-
|
|
208
|
-
type: "asset",
|
|
209
|
-
name: GLOBAL_STYLES_CSS_FILE_NAME,
|
|
210
|
-
source: css
|
|
211
|
-
});
|
|
213
|
+
this.setAssetSource(unoCssFileReferenceId, css);
|
|
212
214
|
}
|
|
213
215
|
},
|
|
214
216
|
renderStart() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/svelte-scoped",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.6-beta.1",
|
|
5
5
|
"description": "Use UnoCSS in a modular fashion with styles being stored only in the Svelte component they are used in: Vite plugin for apps, Svelte preprocessor for component libraries",
|
|
6
6
|
"author": "Jacob Bowdoin",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"css-tree": "^3.1.0",
|
|
48
48
|
"magic-string": "^0.30.21",
|
|
49
49
|
"zimmerframe": "^1.1.4",
|
|
50
|
-
"@unocss/config": "66.6.
|
|
51
|
-
"@unocss/core": "66.6.
|
|
52
|
-
"@unocss/preset-
|
|
53
|
-
"@unocss/preset-
|
|
54
|
-
"@unocss/reset": "66.6.
|
|
50
|
+
"@unocss/config": "66.6.6-beta.1",
|
|
51
|
+
"@unocss/core": "66.6.6-beta.1",
|
|
52
|
+
"@unocss/preset-uno": "66.6.6-beta.1",
|
|
53
|
+
"@unocss/preset-wind3": "66.6.6-beta.1",
|
|
54
|
+
"@unocss/reset": "66.6.6-beta.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"prettier-plugin-svelte": "^2.10.1",
|