From 54a05239a6d36c1bd2474cdbc0aee7a7155d7bf3 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 4 Oct 2021 13:22:37 +0200 Subject: [PATCH] MOBILE-3833 ng: Optimize testing build --- angular.json | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/angular.json b/angular.json index 9bb3f23ab..e27e74ea2 100644 --- a/angular.json +++ b/angular.json @@ -66,6 +66,20 @@ } ] }, + "testing": { + "optimization": { + "scripts": false, + "styles": true + }, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + }, "ci": { "progress": false } diff --git a/package.json b/package.json index 5139ca965..cc8e30643 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "serve:test": "NODE_ENV=testing ionic serve --no-open", "build": "ionic build", "build:prod": "NODE_ENV=production ionic build --prod", - "build:test": "NODE_ENV=testing ionic build", + "build:test": "NODE_ENV=testing ionic build --configuration=testing", "dev:android": "ionic cordova run android --livereload", "dev:ios": "ionic cordova run ios", "prod:android": "NODE_ENV=production ionic cordova run android --prod",