fix: manually set EMBER_CLI_ELECTRON var for prod
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -25,7 +25,9 @@ module.exports = function (environment) {
|
||||
// when it is created
|
||||
},
|
||||
|
||||
isElectron: Boolean(process.env.EMBER_CLI_ELECTRON),
|
||||
isElectron: process.env.EMBER_CLI_ELECTRON
|
||||
? JSON.parse(process.env.EMBER_CLI_ELECTRON)
|
||||
: false,
|
||||
|
||||
'ember-cli-mirage': {
|
||||
//enabled: ENABLE_MIRAGE,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"doc:toc": "doctoc README.md",
|
||||
"build": "ember build --environment=production && yarn build:desktop",
|
||||
"build": "EMBER_CLI_ELECTRON=true ember build --environment=production && yarn build:desktop",
|
||||
"build:development": "ember build",
|
||||
"prebuild:desktop": "cp -r dist electron-app/ember-dist",
|
||||
"build:desktop": "cd electron-app && yarn make",
|
||||
|
||||
Reference in new issue
Block a user