commit working index.html

This commit is contained in:
Matthew Raymer
2025-02-12 06:46:16 +00:00
parent 562b27851c
commit 47a28ff7ad
6 changed files with 260 additions and 50 deletions

View File

@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => {
// Set output directory based on build mode
const outDir = isElectron
? "dist-electron"
? "dist-electron/www"
: isCapacitor
? "dist-capacitor"
: "dist";
@@ -32,13 +32,14 @@ export default defineConfig(({ mode }) => {
rollupOptions: {
...(isElectron && {
input: {
main: path.resolve(__dirname, 'src/electron/main.js'),
index: path.resolve(__dirname, 'index.html')
},
output: {
dir: outDir,
format: 'cjs',
entryFileNames: '[name].js'
entryFileNames: 'assets/[name].[hash].js',
chunkFileNames: 'assets/[name].[hash].js',
assetFileNames: 'assets/[name].[hash][extname]'
}
})
}
@@ -46,10 +47,11 @@ export default defineConfig(({ mode }) => {
plugins: [
vue(),
...(isElectron
? [] // Skip PWA for Electron builds
? []
: [
VitePWA({
...appConfig.pwaConfig,
disable: isElectron
}),
]),
],