подготовка к билду
This commit is contained in:
@@ -8,6 +8,8 @@ export default defineConfig(({ mode }) => {
|
||||
const isProd = mode === 'production';
|
||||
|
||||
return {
|
||||
/** Иначе в упакованном Electron `file://` запросы идут в `/assets/...` с корня диска — чёрный экран. */
|
||||
base: isProd ? './' : '/',
|
||||
root: path.resolve(__dirname, 'app/renderer'),
|
||||
plugins: [
|
||||
react({
|
||||
|
||||
Reference in New Issue
Block a user