create-nexa-app 1.0.7 → 1.0.9
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 +1 -1
- package/bin/nexa.js +14 -24
- package/package.json +1 -1
package/README.md
CHANGED
package/bin/nexa.js
CHANGED
|
@@ -814,21 +814,12 @@ coverage/
|
|
|
814
814
|
const templateIndex = fs.readFileSync(publicIndexPath, "utf8");
|
|
815
815
|
const patchedIndex = templateIndex
|
|
816
816
|
.replace(/<title>.*?<\/title>/i, `<title>Nexa • ${displayName}</title>`)
|
|
817
|
-
.replace(
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
)
|
|
821
|
-
.replace(
|
|
822
|
-
|
|
823
|
-
`href="${APP_BASE}manifest.json"`,
|
|
824
|
-
)
|
|
825
|
-
.replace(
|
|
826
|
-
/href=["']\.\/favicon\.png["']/i,
|
|
827
|
-
`href="${APP_BASE}favicon.png"`,
|
|
828
|
-
)
|
|
829
|
-
.replace(/href=["']\/favicon\.png["']/i, `href="${APP_BASE}favicon.png"`)
|
|
830
|
-
.replace(/href=["']\.\/nexa\.svg["']/i, `href="${APP_BASE}nexa.svg"`)
|
|
831
|
-
.replace(/href=["']\/nexa\.svg["']/i, `href="${APP_BASE}nexa.svg"`)
|
|
817
|
+
.replace(/href=["']\.\/manifest\.json["']/i, 'href="./manifest.json"')
|
|
818
|
+
.replace(/href=["']\/manifest\.json["']/i, 'href="./manifest.json"')
|
|
819
|
+
.replace(/href=["']\.\/favicon\.png["']/i, 'href="./favicon.png"')
|
|
820
|
+
.replace(/href=["']\/favicon\.png["']/i, 'href="./favicon.png"')
|
|
821
|
+
.replace(/href=["']\.\/nexa\.svg["']/i, 'href="./nexa.svg"')
|
|
822
|
+
.replace(/href=["']\/nexa\.svg["']/i, 'href="./nexa.svg"')
|
|
832
823
|
.replace(/src=["']\.\/src\/main\.jsx["']/i, 'src="/src/main.jsx"')
|
|
833
824
|
.replace(/src=["']src\/main\.jsx["']/i, 'src="/src/main.jsx"');
|
|
834
825
|
|
|
@@ -845,14 +836,13 @@ coverage/
|
|
|
845
836
|
|
|
846
837
|
<!-- PWA -->
|
|
847
838
|
<meta name="theme-color" content="#3ee7ff" />
|
|
848
|
-
<link rel="manifest" href="
|
|
839
|
+
<link rel="manifest" href="./manifest.json" />
|
|
849
840
|
|
|
850
841
|
<!-- Icons -->
|
|
851
|
-
<link rel="icon" type="image/
|
|
842
|
+
<link rel="icon" type="image/svg+xml" href="./nexa.svg" />
|
|
852
843
|
|
|
853
844
|
<!-- Title -->
|
|
854
|
-
<title>Nexa •
|
|
855
|
-
|
|
845
|
+
<title>Nexa • ${displayName}</title>
|
|
856
846
|
</head>
|
|
857
847
|
<body>
|
|
858
848
|
<div id="root"></div>
|
|
@@ -867,26 +857,26 @@ coverage/
|
|
|
867
857
|
const manifestContent = `{
|
|
868
858
|
"name": "Nexa App",
|
|
869
859
|
"short_name": "Nexa",
|
|
870
|
-
"start_url": "
|
|
871
|
-
"scope": "
|
|
860
|
+
"start_url": "./",
|
|
861
|
+
"scope": "./",
|
|
872
862
|
"display": "standalone",
|
|
873
863
|
"background_color": "#07111f",
|
|
874
864
|
"theme_color": "#3ee7ff",
|
|
875
865
|
"icons": [
|
|
876
866
|
{
|
|
877
|
-
"src": "
|
|
867
|
+
"src": "./icons/icon-192.png",
|
|
878
868
|
"sizes": "192x192",
|
|
879
869
|
"type": "image/png",
|
|
880
870
|
"purpose": "any maskable"
|
|
881
871
|
},
|
|
882
872
|
{
|
|
883
|
-
"src": "
|
|
873
|
+
"src": "./icons/icon-512.png",
|
|
884
874
|
"sizes": "512x512",
|
|
885
875
|
"type": "image/png",
|
|
886
876
|
"purpose": "any maskable"
|
|
887
877
|
},
|
|
888
878
|
{
|
|
889
|
-
"src": "
|
|
879
|
+
"src": "./nexa.svg",
|
|
890
880
|
"sizes": "any",
|
|
891
881
|
"type": "image/svg+xml",
|
|
892
882
|
"purpose": "any"
|