Преглед на файлове

add webpacl bundle analyzer

v.shebanov преди 4 години
родител
ревизия
3adae52742
променени са 3 файла, в които са добавени 253 реда и са изтрити 224 реда
  1. 13 0
      front/config-overrides.js
  2. 233 221
      front/package-lock.json
  3. 7 3
      front/package.json

+ 13 - 0
front/config-overrides.js

@@ -0,0 +1,13 @@
+const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
+
+module.exports = function override(config, env) {
+    if (!config.plugins) {
+        config.plugins = [];
+    }
+
+    config.plugins.push(
+      new BundleAnalyzerPlugin()
+    );
+
+    return config;
+}

Файловите разлики са ограничени, защото са твърде много
+ 233 - 221
front/package-lock.json


+ 7 - 3
front/package.json

@@ -14,9 +14,13 @@
   },
   "proxy": "http://localhost:5000/",
   "scripts": {
-    "start": "react-scripts start",
-    "build": "react-scripts build",
-    "test": "react-scripts test --env=jsdom",
+    "start": "react-app-rewired start",
+    "build": "react-app-rewired build",
+    "test": "react-app-rewired test --env=jsdom",
     "eject": "react-scripts eject"
+  },
+  "devDependencies": {
+    "react-app-rewired": "^2.1.8",
+    "webpack-bundle-analyzer": "^4.4.0"
   }
 }

Някои файлове не бяха показани, защото твърде много файлове са промени