X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=e1e4f4850cb5372542ced50d446403dc5eda3236;hb=122dbb5705a4b9c5d495f13a41a29bc74a8e542d;hp=2cf2ecd621f5f6eb4dbb593974da44837493890f;hpb=0491173a61aed66205c017e0d7e0503ea316c144;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 2cf2ecd62..e1e4f4850 100644 --- a/client/angular.json +++ b/client/angular.json @@ -15,7 +15,7 @@ "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", - "tsConfig": "src/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", "polyfills": "src/polyfills.ts", "stylePreprocessorOptions": { "includePaths": [ @@ -44,6 +44,18 @@ "buildOptimizer": true, "serviceWorker": true, "ngswConfigPath": "src/ngsw-config.json", + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ], "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -72,6 +84,8 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { + "baseHref": "/", + "deployUrl": "client/", "browserTarget": "PeerTube:build" }, "configurations": { @@ -113,8 +127,7 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" + "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" @@ -133,6 +146,11 @@ "options": { "protractorConfig": "e2e/protractor.conf.js", "devServerTarget": "PeerTube:serve:e2e" + }, + "configurations": { + "local": { + "protractorConfig": "e2e/local-protractor.conf.js" + } } }, "lint": {