Install
Yarn
yarn add electron-splashscreen
NPM
npm i electron-splashscreen
Example
import initSplashScreen OfficeTemplate from 'electron-splashscreen';import isDev from 'electron-is-dev';import resolve from 'app-root-path'; const mainWindow = ...; const hideSplashscreen = ;
You can now either within main:
mainWindow.once'ready-to-show',;
or within renderer
// within renderer;// call this whenever your app is ready, for example after all data is loadedreportReady;