2
0
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:
Faris Ansari 2018-10-22 23:25:59 +05:30
parent 40bc76b713
commit 3cd937d08f

View File

@ -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, '\\\\')}"`
} : {})),