mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
change build dir
This commit is contained in:
parent
1808f160b4
commit
91715ebf7d
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@ out
|
|||
.DS_Store
|
||||
.eslintcache
|
||||
*.log*
|
||||
release
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
appId: org.jeffvli.feishin
|
||||
productName: Feishin
|
||||
artifactName: ${productName}-${version}-${os}-setup.${ext}
|
||||
electronVersion: 35.1.5
|
||||
directories:
|
||||
buildResources: build
|
||||
files:
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ const currentOSEnv = process.platform;
|
|||
|
||||
const config: UserConfig = {
|
||||
main: {
|
||||
build: {
|
||||
outDir: './release/app/dist/main',
|
||||
},
|
||||
define: {
|
||||
'import.meta.env.IS_LINUX': JSON.stringify(currentOSEnv === 'linux'),
|
||||
'import.meta.env.IS_MACOS': JSON.stringify(currentOSEnv === 'darwin'),
|
||||
|
|
@ -29,6 +32,9 @@ const config: UserConfig = {
|
|||
},
|
||||
},
|
||||
preload: {
|
||||
build: {
|
||||
outDir: './release/app/dist/preload',
|
||||
},
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
@ -38,6 +44,9 @@ const config: UserConfig = {
|
|||
},
|
||||
},
|
||||
renderer: {
|
||||
build: {
|
||||
outDir: './release/app/dist/web',
|
||||
},
|
||||
css: {
|
||||
modules: {
|
||||
generateScopedName: '[name]__[local]__[hash:base64:5]',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue