X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=2511615790f2b3b0d8e63f8f5daa0c1c9812e058;hb=76b8d72e324d3a148beec38ed7b36ccfd5eb4009;hp=9bf02e271750efea949632212574cb9f8d18ccfa;hpb=96afc2adf259d676dfc038ce7396c1be71fb05f4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 9bf02e271..251161579 100644 --- a/client/angular.json +++ b/client/angular.json @@ -69,6 +69,10 @@ "translation": "src/locale/angular.ru-RU.xlf", "baseHref": "/client/ru-RU/" }, + "sq": { + "translation": "src/locale/angular.sq.xlf", + "baseHref": "/client/sq/" + }, "zh-Hans": { "translation": "src/locale/angular.zh-Hans-CN.xlf", "baseHref": "/client/zh-Hans-CN/" @@ -127,13 +131,14 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "localize": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "tsConfig": "tsconfig.app.json", "polyfills": "src/polyfills.ts", + "baseHref": "/", + "deployUrl": "", "stylePreprocessorOptions": { "includePaths": [ "src/sass/include" @@ -147,39 +152,25 @@ "src/sass/application.scss" ], "allowedCommonJsDependencies": [ - "@angularclass/hmr", - "debug", - "mousetrap", + "qrcode", "chart.js", - "linkifyjs/html", - "linkifyjs", - "markdown-it", + "htmlparser2", "markdown-it-emoji/light", "sanitize-html", - "socket.io-client", - "socket.io-parser", - "@app/+about/about-peertube/about-peertube-contributors.component", - "path", - "video.js", + "debug", "p2p-media-loader-hlsjs", - "videojs-hotkeys/videojs.hotkeys", - "p2p-media-loader-core", - "qrcode", - "webtorrent", - "cache-chunk-store", - "global/document", - "videojs-vtt.js", - "videojs-vtt.js", - "@babel/runtime/helpers/possibleConstructorReturn", - "@babel/runtime/helpers/inherits", - "@babel/runtime/helpers/construct", - "@videojs/xhr", - "htmlparser2", - "url", - "parse-srcset", - "postcss" + "video.js", + "sha.js/sha1", + "postcss", + "core-js/features/reflect" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -187,7 +178,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -202,7 +192,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "50kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -212,6 +202,21 @@ } ] }, + "ar-locale": { + "localize": ["ar"], + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.hmr.ts" + } + ] + }, "hmr": { "localize": false, "budgets": [ @@ -247,8 +252,6 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "baseHref": "/", - "deployUrl": "client/", "browserTarget": "PeerTube:build", "proxyConfig": "proxy.config.json" }, @@ -259,6 +262,9 @@ "hmr": { "browserTarget": "PeerTube:build:hmr" }, + "ar-locale": { + "browserTarget": "PeerTube:build:ar-locale" + }, "e2e": { "browserTarget": "PeerTube:build:e2e", "proxyConfig": "e2e/proxy.config.json"