chore: 整理electron目录

This commit is contained in:
qier222 2022-05-13 19:30:13 +08:00
parent ca4725a46e
commit 8d7ae405a6
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
15 changed files with 160 additions and 68 deletions

View file

@ -23,13 +23,13 @@ const TAG = '[script/build.main.ts]'
const spinner = ora(`${TAG} Main Process Building...`)
const options = {
entryPoints: ['./index.ts', './rendererPreload.ts'],
entryPoints: ['./main/index.ts', './main/rendererPreload.ts'],
outdir: './dist',
platform: 'node',
format: 'cjs',
bundle: true,
sourcemap: true,
define: envForEsbuild,
minify: true,
external: [
...builtinModules.filter(
x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x)
@ -95,7 +95,6 @@ if (argv.watch) {
...options.define,
'process.env.NODE_ENV': '"production"',
},
minify: true,
})
.then(() => {
console.log(TAG, pc.green('Main Process Build Succeeded.'))