Skip to content

Commit

Permalink
Migrating from CRA to Vite build 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-iaco committed Feb 5, 2023
1 parent 81a36df commit c50c8c7
Show file tree
Hide file tree
Showing 19 changed files with 3,821 additions and 14,652 deletions.
8 changes: 4 additions & 4 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REACT_APP_BASE_URL=http://localhost:8080/api
REACT_APP_BASE_URL_FT=http://localhost:8081/api
REACT_APP_VERSION=local
REACT_APP_AVAILABLE_UNITS="ml,g,Unit"
VITE_BASE_URL=http://localhost:8080/api
VITE_BASE_URL_FT=http://localhost:8081/api
VITE_VERSION=local
VITE_AVAILABLE_UNITS="ml,g,Unit"
GENERATE_SOURCEMAP=false
6 changes: 3 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_BASE_URL="/api"
REACT_APP_BASE_URL_FT="/api"
REACT_APP_AVAILABLE_UNITS="ml,g,Unit"
VITE_BASE_URL="/api"
VITE_BASE_URL_FT="/api"
VITE_AVAILABLE_UNITS="ml,g,Unit"
GENERATE_SOURCEMAP=false
8 changes: 7 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
"**/node_modules/**",
"src/**",
"public/**",
"README.md",
"package.json",
"package-lock.json",
"k8s/**"
],
"rewrites": [
{
Expand Down
17 changes: 5 additions & 12 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,19 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#F3A766" />
<meta
name="description"
content="Web site for food management"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="manifest" href="/manifest.json" />
<title>Grocery</title>
</head>
<body>
Expand All @@ -40,5 +31,7 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<!-- Add entry point 👇 -->
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit c50c8c7

Please sign in to comment.