Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change outDir from dist-electron ? #48

Closed
53RG1005 opened this issue Sep 14, 2023 · 1 comment
Closed

How to change outDir from dist-electron ? #48

53RG1005 opened this issue Sep 14, 2023 · 1 comment

Comments

@53RG1005
Copy link

electron: {
    build: [
      {
        // Main-Process entry file of the Electron App.
        entry: 'electron/main.ts',
      },
      {
        onstart(options) {
          // Notify the Renderer-Process to reload the page when the Preload-Scripts build is complete,
          // instead of restarting the entire Electron App.
          options.reload()
        },
        entry: 'electron/preload.ts',
      },
    ],
    outDir: 'test',
    renderer: {},
  },

When i set outDir it does not affect

What should i do ?

@caoxiemeihao
Copy link
Owner

electron: {
    build: [
      {
        // Main-Process entry file of the Electron App.
        entry: 'electron/main.ts',
+       vite: {
+         build: {
+           outDir: 'you-directory',
+         },
+       },
      },
      {
        onstart(options) {
          // Notify the Renderer-Process to reload the page when the Preload-Scripts build is complete,
          // instead of restarting the entire Electron App.
          options.reload()
        },
        entry: 'electron/preload.ts',
      },
    ],
    outDir: 'test',
    renderer: {},
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants