]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular.json
Handle subtitles in player
[github/Chocobozzz/PeerTube.git] / client / angular.json
index 4a03d7cfed9995e72a35191d25c0bb491c648525..789eeb3d00e4746e6dd58f99d194fde7a283f875 100644 (file)
@@ -11,6 +11,7 @@
         "build": {
           "builder": "@angular-devkit/build-angular:browser",
           "options": {
+            "deployUrl": "client/",
             "outputPath": "dist",
             "index": "src/index.html",
             "main": "src/main.ts",
               "vendorChunk": false,
               "buildOptimizer": true,
               "serviceWorker": true,
-              "ngswConfigPath": "/src/ngsw-config.json",
+              "ngswConfigPath": "src/ngsw-config.json",
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
                   "with": "src/environments/environment.prod.ts"
                 }
               ]
+            },
+            "hmr": {
+              "fileReplacements": [
+                {
+                  "replace": "src/environments/environment.ts",
+                  "with": "src/environments/environment.hmr.ts"
+                }
+              ]
+            },
+            "e2e": {
+              "fileReplacements": [
+                {
+                  "replace": "src/environments/environment.ts",
+                  "with": "src/environments/environment.e2e.ts"
+                }
+              ]
             }
           }
         },
           "configurations": {
             "production": {
               "browserTarget": "PeerTube:build:production"
+            },
+            "hmr": {
+              "browserTarget": "PeerTube:build:hmr"
+            },
+            "e2e": {
+              "browserTarget": "PeerTube:build:e2e"
             }
           }
         },
       }
     },
     "PeerTube-e2e": {
-      "root": "",
+      "root": "e2e/",
       "sourceRoot": "",
       "projectType": "application",
       "architect": {
         "e2e": {
           "builder": "@angular-devkit/build-angular:protractor",
           "options": {
-            "protractorConfig": "./protractor.conf.js",
-            "devServerTarget": "PeerTube:serve"
+            "protractorConfig": "e2e/protractor.conf.js",
+            "devServerTarget": "PeerTube:serve:e2e"
           }
         },
         "lint": {
       "prefix": "app"
     }
   }
-}
\ No newline at end of file
+}