Browse Source

Merge branch 'fix-chadpack-bugs' of termina1/chad-music into master

Innocenty Enikeev 4 năm trước cách đây
mục cha
commit
1d4475dde2
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 2 2
      web/package.json
  2. 3 3
      web/public/index.html

+ 2 - 2
web/package.json

@@ -26,9 +26,9 @@
     "build": "react-app-rewired build",
     "test": "react-app-rewired test",
     "eject": "react-scripts eject",
-    "postinstall": "curl https://gobinaries.com/Termina1/sorvor@v0.4.5 | PREFIX=./node_modules/.bin sh ",
+    "postinstall": "curl https://gobinaries.com/Termina1/sorvor@v0.4.7 | PREFIX=./node_modules/.bin sh ",
     "chadpack": "sorvor --serve ./public/index.html --loader:.js=jsx  --loader:.png=file --loader:.svg=file --inject:./react-shim.js --port=3000 --outdir=./build",
-    "chadpack-prod": "sorvor ./public/index.html --loader:.js=jsx  --loader:.png=file --loader:.svg=file --inject:./react-shim.js --outdir=./build"
+    "chadpack-prod": "sorvor ./public/index.html --loader:.js=jsx  --loader:.png=file --loader:.svg=file --inject:./react-shim.js --outdir=./build --minify"
   },
   "eslintConfig": {
     "extends": [

+ 3 - 3
web/public/index.html

@@ -2,15 +2,15 @@
 <html lang="en">
   <head>
     <meta charset="utf-8" />
-    <link rel="icon" href="{{ copy "./logo256.png" }}" />
+    <link rel="icon" href="{{ copy "/logo256.png" }}" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <meta name="theme-color" content="#000000" />
     <meta
       name="description"
       content="Chad music streaming service"
     />
-    <link rel="apple-touch-icon" href="{{ copy "./logo256.png" }}" />
-    <link rel="manifest" href="{{ copy "./manifest.json" }}" />
+    <link rel="apple-touch-icon" href="{{ copy "/logo192.png" }}" />
+    <link rel="manifest" href="{{ copy "/manifest.json" }}" />
     {{ livereload }}
     <title>Chad music</title>
   </head>