Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Move from webpack to vite

Move from webpack to vite

Lightning Talk

Niklas Kiefer

May 18, 2021
Tweet

More Decks by Niklas Kiefer

Other Decks in Technology

Transcript

  1. 2

  2. 3

  3. 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
  4. 5

  5. 6

  6. 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