@vixt/core 0.4.5 → 0.5.0
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/LICENSE +1 -1
- package/dist/node/index.mjs +3 -2
- package/package.json +12 -3
package/LICENSE
CHANGED
package/dist/node/index.mjs
CHANGED
|
@@ -361,8 +361,9 @@ function generateIndexHtml(options, vixt) {
|
|
|
361
361
|
<!-- This file transform from '${path.basename(buildDir)}/index.html' -->
|
|
362
362
|
`);
|
|
363
363
|
const { head = {}, rootTag, rootId, entryFile } = options;
|
|
364
|
-
const
|
|
365
|
-
const
|
|
364
|
+
const heads = Object.entries(head);
|
|
365
|
+
const headTemplate = heads.filter(([k]) => k !== "noscript").map(([tag, attrs]) => attrs.map((e) => resolveHeadTag(tag, e)).reverse()).flat().join("\n");
|
|
366
|
+
const noscriptTemplate = heads.filter(([k]) => k === "noscript").map(([tag, attrs]) => attrs.map((e) => resolveHeadTag(tag, e)).reverse()).flat().join("\n");
|
|
366
367
|
let { loadingTemplate = "" } = options;
|
|
367
368
|
if (!loadingTemplate) {
|
|
368
369
|
for (const layer of vixt._layers) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://github.
|
|
7
|
+
"homepage": "https://soullyoko.github.io/vixt/",
|
|
8
8
|
"repository": "https://github.com/SoulLyoko/vixt.git",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"vixt",
|
|
11
|
+
"vite",
|
|
12
|
+
"nuxt",
|
|
13
|
+
"vue",
|
|
14
|
+
"uni",
|
|
15
|
+
"vitepress",
|
|
16
|
+
"react"
|
|
17
|
+
],
|
|
9
18
|
"exports": {
|
|
10
19
|
".": {
|
|
11
20
|
"types": "./dist/node/index.d.ts",
|
|
@@ -33,7 +42,7 @@
|
|
|
33
42
|
"pathe": "^2.0.3",
|
|
34
43
|
"pkg-types": "^2.2.0",
|
|
35
44
|
"tsx": "^4.20.3",
|
|
36
|
-
"vite": "^7.0.
|
|
45
|
+
"vite": "^7.0.2",
|
|
37
46
|
"vite-plugin-checker": "^0.9.3"
|
|
38
47
|
},
|
|
39
48
|
"scripts": {
|