forked from jsnbuchanan/crowd-funder-for-time-pwa
commit working index.html
This commit is contained in:
@@ -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
|
||||
}),
|
||||
]),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user