ezfw-core 1.0.43 → 1.0.45
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.
|
@@ -25,11 +25,14 @@ const DEFAULT_TEMPLATE = `<!DOCTYPE html>
|
|
|
25
25
|
<head>
|
|
26
26
|
<meta charset="UTF-8">
|
|
27
27
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
28
|
+
<meta name="description" content="{{description}}">
|
|
28
29
|
<title>{{title}}</title>
|
|
29
|
-
|
|
30
|
-
<link rel="
|
|
31
|
-
|
|
32
|
-
<link rel="stylesheet" href="
|
|
30
|
+
<!-- Preload critical font -->
|
|
31
|
+
<link rel="preload" href="/fonts/fontawesome/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin>
|
|
32
|
+
<!-- Font Awesome - Self-hosted (non-blocking) -->
|
|
33
|
+
<link rel="stylesheet" href="/fonts/fontawesome/fontawesome.css" media="print" onload="this.media='all'">
|
|
34
|
+
<noscript><link rel="stylesheet" href="/fonts/fontawesome/fontawesome.css"></noscript>
|
|
35
|
+
<!-- App styles -->
|
|
33
36
|
<link rel="stylesheet" href="/global.css">
|
|
34
37
|
<style>
|
|
35
38
|
/* SSR page styles - page component controls background */
|
|
@@ -767,8 +770,8 @@ function generateHydrationScript(islands, isDev) {
|
|
|
767
770
|
return '';
|
|
768
771
|
}
|
|
769
772
|
const islandsJson = JSON.stringify(islands);
|
|
770
|
-
//
|
|
771
|
-
const runtimePath = isDev ? 'ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
773
|
+
// In dev mode, use path that Vite's dev server can resolve from node_modules
|
|
774
|
+
const runtimePath = isDev ? '/node_modules/ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
772
775
|
// Use hydrate.js for SSR - it doesn't import CSS directly, avoiding MIME type issues
|
|
773
776
|
const frameworkPath = isDev ? '/hydrate.js' : '/assets/hydrate.js';
|
|
774
777
|
return `<script type="module">
|
|
@@ -103,11 +103,14 @@ const DEFAULT_TEMPLATE = `<!DOCTYPE html>
|
|
|
103
103
|
<head>
|
|
104
104
|
<meta charset="UTF-8">
|
|
105
105
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
106
|
+
<meta name="description" content="{{description}}">
|
|
106
107
|
<title>{{title}}</title>
|
|
107
|
-
|
|
108
|
-
<link rel="
|
|
109
|
-
|
|
110
|
-
<link rel="stylesheet" href="
|
|
108
|
+
<!-- Preload critical font -->
|
|
109
|
+
<link rel="preload" href="/fonts/fontawesome/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin>
|
|
110
|
+
<!-- Font Awesome - Self-hosted (non-blocking) -->
|
|
111
|
+
<link rel="stylesheet" href="/fonts/fontawesome/fontawesome.css" media="print" onload="this.media='all'">
|
|
112
|
+
<noscript><link rel="stylesheet" href="/fonts/fontawesome/fontawesome.css"></noscript>
|
|
113
|
+
<!-- App styles -->
|
|
111
114
|
<link rel="stylesheet" href="/global.css">
|
|
112
115
|
<style>
|
|
113
116
|
/* SSR page styles - page component controls background */
|
|
@@ -978,8 +981,8 @@ function generateHydrationScript(
|
|
|
978
981
|
}
|
|
979
982
|
|
|
980
983
|
const islandsJson = JSON.stringify(islands);
|
|
981
|
-
//
|
|
982
|
-
const runtimePath = isDev ? 'ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
984
|
+
// In dev mode, use path that Vite's dev server can resolve from node_modules
|
|
985
|
+
const runtimePath = isDev ? '/node_modules/ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
983
986
|
// Use hydrate.js for SSR - it doesn't import CSS directly, avoiding MIME type issues
|
|
984
987
|
const frameworkPath = isDev ? '/hydrate.js' : '/assets/hydrate.js';
|
|
985
988
|
|