Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-3176

Replace webpack config with Insights' FEC binary

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 2022Q4
    • None
    • UI

      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.

      1. @redhat-cloud-services/frontend-components-config-utilities
      2. @types/webpack
      3. commander
      4. css-loader
      5. glob
      6. html-loader
      7. html-replace-webpack-plugin
      8. html-webpack-plugin
      9. inquirer
      10. mini-css-extract-plugin
      11. null-loader
      12. sass
      13. sass-loader
      14. ts-loader
      15. tsconfig-paths-webpack-plugin
      16. webpack
      17. webpack-cli
      18. 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.

      Before:

      After:

            dlabrecq@redhat.com Daniel Labrecque
            dlabrecq@redhat.com Daniel Labrecque
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: