diff --git a/angular.json b/angular.json index 233aee9c..1ecc329e 100644 --- a/angular.json +++ b/angular.json @@ -41,6 +41,7 @@ "with": "projects/ucap-webmessenger-app/src/environments/environment-browser.dev.ts" } ], + "outputPath": "dist/ucap-webmessenger-app-browser", "polyfills": "projects/ucap-webmessenger-app/src/polyfills-es5.ts", "tsConfig": "projects/ucap-webmessenger-app/tsconfig-es5.app.json", "optimization": false, @@ -72,6 +73,7 @@ "with": "projects/ucap-webmessenger-app/src/environments/environment-browser.prod.ts" } ], + "outputPath": "dist/ucap-webmessenger-app-browser", "polyfills": "projects/ucap-webmessenger-app/src/polyfills-es5.ts", "tsConfig": "projects/ucap-webmessenger-app/tsconfig-es5.app.json", "optimization": true, diff --git a/package.json b/package.json index 6e068ca4..f3de5fed 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ "build:main:development": "cross-env NODE_ENV=development TS_NODE_PROJECT='./config/tsconfig.webpack.json' parallel-webpack --config=config/main.webpack.config.ts", "build:main:production": "cross-env NODE_ENV=production TS_NODE_PROJECT='./config/tsconfig.webpack.json' NODE_OPTIONS='--max_old_space_size=4096' parallel-webpack --config=config/main.webpack.config.ts", "electron:local": "electron .", - "electron:windows": "electron-builder build --windows", - "electron:mac": "electron-builder build --mac", - "electron:linux": "electron-builder build --linux", + "electron:windows": "npm run build && electron-builder build --windows", + "electron:mac": "npm run build && electron-builder build --mac", + "electron:linux": "npm run build && electron-builder build --linux", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e"