Slide 1

Slide 1 text

Move from webpack to vite postit-js Demo Niklas

Slide 2

Slide 2 text

2

Slide 3

Slide 3 text

3

Slide 4

Slide 4 text

4 Problems with current webpack setup ● “Slow” dev speed ● Configuration overhead - https://github.com/pinussilvestrus/postit-js/blob/main/example/web pack.config.js ● Loading hickups

Slide 5

Slide 5 text

5

Slide 6

Slide 6 text

6

Slide 7

Slide 7 text

7 Results

Slide 8

Slide 8 text

8 Findings regarding vite + less configuration (using rollup under the hood) + integrated dev server + well documentation + promising plugins ecosystem - weird handling of environment variables, https://vitejs.dev/guide/env-and-mode.html#env-variables - missing (proper) support for Sentry - inline @import of css is crashing - reduced boilerplates hides complexity

Slide 9

Slide 9 text

Thank you!