pack: do not include ts file after build
This commit is contained in:
1 parent
e1a9d04819
commit
4836fbeb7d
2 files changed
+9
-4
No files matched your search
+8
-2
@@ -39,15 +39,21 @@ export default defineConfig({
|
||||
eslintPlugin(),
|
||||
// Docs: https://github.com/electron-vite/vite-plugin-electron
|
||||
electronPlugin([
|
||||
{
|
||||
entry: ['src/preload/index.js'],
|
||||
vite: {
|
||||
build: {
|
||||
outDir: 'dist/preload'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
entry: ['src/main/index.ts'],
|
||||
onstart: (options) => {
|
||||
options.startup(['.', '--no-sandbox'])
|
||||
},
|
||||
vite: {
|
||||
publicDir: resolve('./src/main'),
|
||||
build: {
|
||||
emptyOutDir: true,
|
||||
assetsDir: '.',
|
||||
outDir: 'dist/main',
|
||||
rollupOptions: {
|
||||
|
||||
Reference in new issue
Block a user