vite-plugin-react-splash 1.0.1 → 1.0.2
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/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,10 @@ export default defineConfig({
|
|
|
25
25
|
plugins: [
|
|
26
26
|
react(),
|
|
27
27
|
viteSplashScreen({
|
|
28
|
-
logo:
|
|
28
|
+
logo: {
|
|
29
|
+
light: `<svg ...>...</svg>`, // Logo for light mode
|
|
30
|
+
dark: `<svg ...>...</svg>` // Logo for dark mode
|
|
31
|
+
},
|
|
29
32
|
duration: 3000,
|
|
30
33
|
text: 'Loading My Awesome App...',
|
|
31
34
|
version: '1.0.0',
|
|
@@ -67,7 +70,7 @@ function App() {
|
|
|
67
70
|
|
|
68
71
|
| Option | Type | Description |
|
|
69
72
|
| --- | --- | --- |
|
|
70
|
-
| `logo` | `string` | SVG string
|
|
73
|
+
| `logo` | `string \| { light: string, dark: string }` | SVG string or object with light/dark versions. |
|
|
71
74
|
| `duration` | `number` | Time in ms before the splash screen automatically hides. |
|
|
72
75
|
| `text` | `string` | Text to display below the logo. |
|
|
73
76
|
| `version` | `string` | Version string to display at the bottom. |
|
package/package.json
CHANGED