Browse Source

angular.json optimize

allowedCommonJsDependencies & maximumWarning
shimingxy 3 months ago
parent
commit
f53a6b5eee

+ 2 - 2
maxkey-web-frontend/maxkey-web-app/angular.json

@@ -29,7 +29,7 @@
             "assets": ["src/assets", "src/favicon.ico"],
             "styles": ["src/styles.less"],
             "scripts": [],
-            "allowedCommonJsDependencies": ["ajv", "ajv-formats"],
+            "allowedCommonJsDependencies": ["ajv", "ajv-formats","crypto-js"],
             "stylePreprocessorOptions": {
               "includePaths": [
                 "node_modules/"
@@ -48,7 +48,7 @@
               "budgets": [
                 {
                   "type": "initial",
-                  "maximumWarning": "2mb",
+                  "maximumWarning": "4mb",
                   "maximumError": "6mb"
                 },
                 {

+ 2 - 2
maxkey-web-frontend/maxkey-web-mgt-app/angular.json

@@ -29,7 +29,7 @@
             "assets": ["src/assets", "src/favicon.ico"],
             "styles": ["src/styles.less"],
             "scripts": [],
-            "allowedCommonJsDependencies": ["ajv", "ajv-formats"],
+            "allowedCommonJsDependencies": ["ajv", "ajv-formats","crypto-js"],
             "stylePreprocessorOptions": {
               "includePaths": [
                 "node_modules/"
@@ -48,7 +48,7 @@
               "budgets": [
                 {
                   "type": "initial",
-                  "maximumWarning": "2mb",
+                  "maximumWarning": "4mb",
                   "maximumError": "6mb"
                 },
                 {