We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f70212 commit 178e054Copy full SHA for 178e054
1 file changed
electron.vite.config.mjs
@@ -18,8 +18,8 @@ const getEntry = () => {
18
const pageEntry = {}
19
const entries = fg.globSync('./src/renderer/windows/**/index.html')
20
entries.forEach((entry) => {
21
- const pathArr = entry.split(sep)
22
- const name = pathArr[pathArr.length - 2]
+ const match = entry.match(/windows\/([^/]+)\/index\.html$/)
+ const name = match ? match[1] : undefined
23
if (name) {
24
pageEntry[name] = resolve('src/renderer/windows', name, 'index.html')
25
}
0 commit comments