Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4793

[Spike] Speed up webpack in ui-kit

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dcos-ui

      Description

      Starting ui-kit it takes >80sec for webpack alone. The time until i see the change of a file reflected in the browser varies between 7 and 11 seconds.

      With a few tweaks in the webpack config, we can speed up things significantly with minimal tradeoffs.

      1. cache the output of react-docgen-typescript-loader (by far the slowest loader).
      2. move type checking to a background process
      3. use cheaper sourcemaps

       

        Attachments

          Activity

            People

            • Assignee:
              drozhkov Dima Rozhkov
              Reporter:
              pierrebeitz Pierre Beitz
              Team:
              Frontend Team
              Watchers:
              Pierre Beitz
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: