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.
- cache the output of react-docgen-typescript-loader (by far the slowest loader).
- move type checking to a background process
- use cheaper sourcemaps