remove configs

This commit is contained in:
草鞋没号 2022-01-27 10:49:11 +08:00
parent 3c6a739da3
commit 905146809b
2 changed files with 0 additions and 56 deletions

@ -1,28 +0,0 @@
import { join } from 'path'
import { builtinModules } from 'module'
import { defineConfig } from 'vite'
import pkg from '../package.json'
export default defineConfig({
mode: process.env.NODE_ENV,
root: join(__dirname, '../src/main'),
build: {
outDir: '../../dist/main',
lib: {
entry: 'index.ts',
formats: ['cjs'],
},
minify: process.env.NODE_ENV === 'production',
emptyOutDir: true,
rollupOptions: {
external: [
'electron',
...builtinModules,
...Object.keys((pkg as Record<string, any>).dependencies || {}),
],
output: {
entryFileNames: '[name].cjs',
},
},
},
})

@ -1,28 +0,0 @@
import { join } from 'path'
import { builtinModules } from 'module'
import { defineConfig } from 'vite'
import pkg from '../package.json'
export default defineConfig({
mode: process.env.NODE_ENV,
root: join(__dirname, '../src/preload'),
build: {
outDir: '../../dist/preload',
lib: {
entry: 'index.ts',
formats: ['cjs'],
},
minify: process.env.NODE_ENV === 'production',
emptyOutDir: true,
rollupOptions: {
external: [
'electron',
...builtinModules,
...Object.keys((pkg as Record<string, any>).dependencies || {}),
],
output: {
entryFileNames: '[name].cjs',
},
},
},
})