electron-vite-solidjs-tailwindcss Tailwind Templates

Electron Vite Solidjs Tailwindcss

🄳 Really simple Electron + Vite + SolidJS + Tailwindcss boilerplate.

electron-vite-solidjs-tailwind

GitHub stars GitHub issues GitHub license Required Node.JS >= 14.18.0 || >=16.0.0

English

šŸ‘€ Overview

šŸ“¦ Ready out of the box
šŸŽÆ Based on the official solidjs/templates/ts, project structure will be familiar to you
🌱 Easily extendable and customizable
šŸ’Ŗ Supports Node.js API in the renderer process
šŸ”© Supports C/C++ native addons
šŸž Debugger configuration included
šŸ–„ Easy to implement multiple windows

šŸ›« Quick start

git clone --depth 1 --branch main https://github.com/maulik9898/electron-vite-solidjs-tailwindcss.git your-project-name
cd your-project-name
npm install

šŸž Debug

electron-vite-react-debug.gif

šŸ“‚ Directory structure

Familiar React application structure, just with electron folder on the top :wink:
Files in this folder will be separated from your React application and built into dist/electron

ā”œā”€ā”€ electron                  Electron-related code
│   ā”œā”€ā”€ main                  Main-process source code
│   ā”œā”€ā”€ preload               Preload-scripts source code
│   └── resources             Resources for the production build
│       ā”œā”€ā”€ icon.icns             Icon for the application on macOS
│       ā”œā”€ā”€ icon.ico              Icon for the application
│       ā”œā”€ā”€ installerIcon.ico     Icon for the application installer
│       └── uninstallerIcon.ico   Icon for the application uninstaller
│
ā”œā”€ā”€ release                   Generated after production build, contains executables
│   └── {version}
│       ā”œā”€ā”€ {os}-unpacked     Contains unpacked application executable
│       └── Setup.{ext}       Installer for the application
│
ā”œā”€ā”€ public                    Static assets
└── src                       Renderer source code, your React application

🚨 Be aware

This template integrates Node.js API to the renderer process by default. If you want to follow Electron Security Concerns you might want to disable this feature. You will have to expose needed API by yourself.

To get started, remove the option as shown below. This will modify the Vite configuration and disable this feature.

# vite.config.ts

electron({
- renderer: {}
})

ā” FAQ

Top categories

Loading Svelte Themes