-
Task
-
Resolution: Done
-
Normal
-
None
-
False
-
None
-
False
Want to replace our webpack config with Insights' FEC binary, similar to the HCS UI. This will greatly clean up our webpack config and allow us to remove several dependencies.
For example, our null-loader dependency has a security issue that likely won't be fix. This package has been deprecated and its repo archived.
That said, with this change, we can remove the following 18 packages. Many of these packages will still be in use, just moved to Insights' webpack config.
- @redhat-cloud-services/frontend-components-config-utilities
- @types/webpack
- commander
- css-loader
- glob
- html-loader
- html-replace-webpack-plugin
- html-webpack-plugin
- inquirer
- mini-css-extract-plugin
- null-loader
- sass
- sass-loader
- ts-loader
- tsconfig-paths-webpack-plugin
- webpack
- webpack-cli
- webpack-dev-server
Note that the build time improved a couple seconds and we're able to reduce our bundle sizes considerably. Went from 7 bundles to 4 and down from 6.23 MiB to 3.47 MiB.