Quellcode durchsuchen

build: npm script for mod-fed serve

squash
raitis vor 2 Jahren
Ursprung
Commit
2c6cd8101d
2 geänderte Dateien mit 16 neuen und 2 gelöschten Zeilen
  1. 15 2
      angular.json
  2. 1 0
      package.json

+ 15 - 2
angular.json

@@ -83,6 +83,19 @@
                   "maximumError": "300kb"
                 }
               ]
+            },
+            "development": {
+              "commonChunk": false,
+              "sourceMap": {
+                "scripts": true,
+                "styles": true,
+                "vendor": true
+              },
+              "buildOptimizer": false,
+              "optimization": false,
+              "vendorChunk": true,
+              "extractLicenses": false,
+              "namedChunks": true
             }
           }
         },
@@ -105,10 +118,10 @@
           },
           "configurations": {
             "production": {
-              "browserTarget": "app:build:production"
+              "browserTarget": "fieldcalc:build:production"
             },
             "development": {
-              "browserTarget": "app:build:development"
+              "browserTarget": "fieldcalc:build:development"
             }
           },
           "defaultConfiguration": "development"

+ 1 - 0
package.json

@@ -10,6 +10,7 @@
     "ng": "ng",
     "build": "ng build --configuration production",
     "dev": "ng serve --configuration production --disable-host-check",
+    "dev-fed": "ng run fieldcalc:federated-serve",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "repository": {