jmacura 3 лет назад
Родитель
Сommit
5bc278c372
2 измененных файлов с 14 добавлено и 2 удалено
  1. 13 1
      angular.json
  2. 1 1
      package.json

+ 13 - 1
angular.json

@@ -47,6 +47,14 @@
             "namedChunks": true
           },
           "configurations": {
+            "development": {
+              "buildOptimizer": false,
+              "optimization": false,
+              "vendorChunk": true,
+              "extractLicenses": false,
+              "sourceMap": true,
+              "namedChunks": true
+            },
             "production": {
               "fileReplacements": [
                 {
@@ -75,15 +83,19 @@
               ]
             }
           },
-          "defaultConfiguration": ""
+          "defaultConfiguration": "production"
         },
         "serve": {
+          "defaultConfiguration": "development",
           "builder": "@angular-builders/custom-webpack:dev-server",
           "options": {
             "port": 8080,
             "browserTarget": "attractiveness:build"
           },
           "configurations": {
+            "development": {
+              "browserTarget": "attractiveness:build:development"
+            },
             "production": {
               "browserTarget": "attractiveness:build:production"
             }

+ 1 - 1
package.json

@@ -5,7 +5,7 @@
   "main": "build/index.html",
   "scripts": {
     "build": "ng build --configuration production",
-    "build-dev": "ng build",
+    "build-dev": "ng build --configuration development",
     "dev": "npm run start-dev",
     "ng": "ng",
     "serve": "npm run start-dev",