diff --git a/README.md b/README.md index 1b3724f..f118b9a 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ npm create electron-vite ## 🐞 Debug -![electron-vite-react-debug.gif](/electron-vite-react-debug.gif) +![electron-vite-react-debug.gif](/public/electron-vite-react-debug.gif) ## 📂 Directory structure diff --git a/index.html b/index.html index aeae7ef..6ee5924 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,6 @@ - Electron + Vite + React diff --git a/public/electron-vite.svg b/public/electron-vite.svg new file mode 100644 index 0000000..bed108b --- /dev/null +++ b/public/electron-vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico index 843ea24..fe2cd1e 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/logo.svg b/public/logo.svg deleted file mode 100644 index 96fc008..0000000 --- a/public/logo.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/App.scss b/src/App.scss index 0c6f2c3..78b1263 100644 --- a/src/App.scss +++ b/src/App.scss @@ -14,9 +14,6 @@ .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } -.logo.react:hover { - filter: drop-shadow(0 0 2em #61dafbaa); -} @keyframes logo-spin { from { diff --git a/src/App.tsx b/src/App.tsx index 25f3342..c6b9afb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,4 @@ +import nodeLogo from "./assets/node.svg" import { useState } from 'react' import './App.scss' @@ -9,7 +10,9 @@ function App() { return (
- Vite logo + + Electron + Vite logo +

Electron + Vite + React

@@ -21,10 +24,10 @@ function App() {

- Click on the Electron, Vite and React logos to learn more + Click on the Electron + Vite logo to learn more

- Place static files into the/public folder Node logo + Place static files into the/public folder Node logo
) diff --git a/src/assets/electron.svg b/src/assets/electron.svg deleted file mode 100644 index 1c5cccb..0000000 --- a/src/assets/electron.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/node.svg b/src/assets/node.svg similarity index 100% rename from public/node.svg rename to src/assets/node.svg diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index b3ad358..0000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/vite.config.ts b/vite.config.ts index 2bd3f42..309baa2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,7 +10,6 @@ import pkg from './package.json' rmSync(path.join(__dirname, 'dist-electron'), { recursive: true, force: true }) const isDevelopment = process.env.NODE_ENV === "development" || !!process.env.VSCODE_DEBUG -const isProduction = process.env.NODE_ENV === "production" // https://vitejs.dev/config/ export default defineConfig({