Skip to content

Commit

Permalink
Added postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Nov 22, 2023
1 parent a6e6ee7 commit 14ad7c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/react-vite-electron-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/react-vite-electron-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build && electron-builder",
"postinstall": "electron-builder install-app-deps",
"preview": "vite preview",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,sass,scss,less,html,md,yml,yaml}\"",
"lint": "eslint .",
Expand Down
15 changes: 8 additions & 7 deletions examples/react-vite-electron-example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
import path from 'path';
import react from '@vitejs/plugin-react';
import eslint from 'vite-plugin-eslint';
import electron from 'vite-electron-plugin'
import electron from 'vite-electron-plugin';
import { VitePWA } from 'vite-plugin-pwa';

const { PORT = '3000' } = process.env;
Expand Down Expand Up @@ -42,12 +42,13 @@ const vitePluginPWA = () =>
},
});

const electronPlugin = () => electron({
include: [
// The Electron source codes directory
'electron',
],
});
const electronPlugin = () =>
electron({
include: [
// The Electron source codes directory
'electron',
],
});

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 14ad7c4

Please sign in to comment.