X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=e1e4f4850cb5372542ced50d446403dc5eda3236;hb=65af03a241aa83ab7ba71278b6c99acd26428b8a;hp=bd3c7216e082cefc8b2d7d2661cf833fd3658424;hpb=9e3e248109ffe5fc208c23081cbcffdb9a682ff4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index bd3c7216e..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/**"