code4recovery / tsml-ui

Embeddable recovery meeting finder
https://tsml-ui.code4recovery.org/
MIT License
23 stars 17 forks source link

switch to vite #395

Closed joshreisner closed 1 month ago

joshreisner commented 5 months ago

we use laravel mix to build our javascript, which is odd since this isn't a laravel project - and even laravel is using vite now so it's time for us to make the switch

the important thing that mix does is bundle our javascript into a single, predictable url at /public/app.js. we also need to confirm that the minified size is roughly the same: ~1.4m

then update the steps for contributing in readme

joshreisner commented 2 months ago

figured this out!! in vite.config.js:

export default {
  build: {
    rollupOptions: {
      output: {
        entryFileNames: "app.js",
      },
    },
  },
};
joshreisner commented 2 months ago
/app.js | 1.37 MiB
/app.js.LICENSE.txt │ 1.94 KiB