mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Add env ELECTRON in config
This commit is contained in:
parent
40bc76b713
commit
3cd937d08f
@ -90,6 +90,7 @@ function makeConfig() {
|
||||
new webpack.DefinePlugin(Object.assign({
|
||||
'process.env': appConfig.dev.env,
|
||||
'process.env.NODE_ENV': isProduction ? '"production"' : '"development"',
|
||||
'process.env.ELECTRON': JSON.stringify(process.env.ELECTRON)
|
||||
}, !isProduction ? {
|
||||
'__static': `"${resolveAppDir(appConfig.staticPath).replace(/\\/g, '\\\\')}"`
|
||||
} : {})),
|
||||
|
Loading…
Reference in New Issue
Block a user