fix main process env bug
This commit is contained in:
1 parent
72f4b11854
commit
0d0037e889
2 files changed
+2
-1
No files matched your search
@@ -19,6 +19,7 @@ const argv = minimist(process.argv.slice(2))
|
||||
const opts = options(argv.env)
|
||||
const TAG = '[build-main.ts]'
|
||||
const spinner = ora(`${TAG} Electron build...`)
|
||||
process.env.NODE_ENV = argv.env
|
||||
|
||||
if (argv.watch) {
|
||||
waitOn({ port: process.env.PORT as string }).then(msg => {
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
readonly NODE_ENV: 'development' | 'production'
|
||||
NODE_ENV: 'development' | 'production'
|
||||
readonly PORT: string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user