Wojciech Wernicki :prami: · @wojciech
240 followers · 757 posts · Server social.lol

3. Vite config

95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

[1]: github.com/vitejs/vite-plugin-

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Wojciech Wernicki :prami: · @wojciech
240 followers · 756 posts · Server social.lol

4. All set up!

It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Wojciech Wernicki :prami: · @wojciech
240 followers · 755 posts · Server social.lol

3. Vite config

95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

[1]: github.com/vitejs/vite-plugin-

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Wojciech Wernicki :prami: · @wojciech
240 followers · 754 posts · Server social.lol

2. Add support for tests (Jest, React Testing Library)

That one was tricky, but thanks to 2 articles on Medium (I will link to privacy-friendly versions) I managed to run tests.

[1]: scribe.rip/quick-jest-setup-wi
[2]: scribe.rip/how-to-setup-jest-a

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Wojciech Wernicki :prami: · @wojciech
240 followers · 753 posts · Server social.lol

1. Remove CRA & install Vite.js

This is pretty straight-forward, I followed an example for react-ts available at Vite documentation[1].

[1]: vitejs.dev/guide/#trying-vite-

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Wojciech Wernicki :prami: · @wojciech
240 followers · 752 posts · Server social.lol

Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

#react #createreactapp #Vitejs #typescript

Last updated 1 year ago

Tom Smykowski · @tomaszs
18 followers · 149 posts · Server techhub.social

Vite.js 4.4 will experimentally support Lightning CSS
link.medium.com/sLRbo5CC0Ab

#javascript #Vitejs #css

Last updated 1 year ago

TravisLF · @travislf
39 followers · 169 posts · Server techhub.social

I recently began to use Rollup Plugin Visualizer to take a good hard look at one of my company’s frontend applications.

I found that someone had installed an npm package containing every zipcode in the US and Canada. The package literally doubled the size of the application. It was larger than all the image assets, other node modules, components for the entire application, and was only used on one form which already used google maps’ api. I was dying laughing.

So hey, take a look at your node modules every once in a while, and make sure you know how big a thing is when you install it.

#javascript #Vitejs #frontend

Last updated 1 year ago

Axel Rauschmayer · @rauschma
4144 followers · 1953 posts · Server fosstodon.org
Marc JESTIN — Happy Numeric · @mjhn
35 followers · 118 posts · Server piaille.fr

Les trois points essentiels de l'annonce de la v4.3 de sont dans publiés :

happynumeric.fr/mediawiki/inde

#Vitejs #webdev #javascript #typescript

Last updated 1 year ago

Greg Knapp · @gregk
33 followers · 248 posts · Server mastodonapp.uk

Who knew passing a command line parameter or environment variable to your app via the bundler was so involved?

github.com/vitejs/vite/issues/

#javascript #Vitejs #webdev #typescript

Last updated 1 year ago

Emilis 🇺🇦 · @emilis
43 followers · 359 posts · Server fosstodon.org

Spent a full day trying to make output full source sourcemaps for dependencies into the build sourcemap file. No luck 😕

Will try other build systems next.

#Vitejs #javascript

Last updated 1 year ago

Axel Rauschmayer · @rauschma
4068 followers · 1768 posts · Server fosstodon.org
Ian VS · @IanVS
339 followers · 475 posts · Server fosstodon.org

Join me for Storybook Day tomorrow (March 14). I'll be talking about the performance improvements we've made in , how we achieved first-class support, and what we've done to reduce the storybook install size.

See the full schedule at storybook.js.org/day/schedule, and join us in Discord to discuss and ask questions. discord.gg/storybook

#storybook #Vitejs

Last updated 1 year ago

Lucas Santos · @lsantosdev
42 followers · 189 posts · Server bolha.us

RT @marcobrunodev
Curso de e , , com e muito mais!!!

Bora fazer o curso grátis acontecer
Dá Like, RT e faça muitos comentários felizes

Aqui não tem pegadinha da semana da programação é um curso completo, grátis e feliz

Pequeno spolier e meta na thread

#react #Vitejs #solidity #azurefunctiom #node

Last updated 2 years ago

Tricia (she/her) · @tricia
130 followers · 73 posts · Server front-end.social

Just set up a new personal project. Trying for the first time, and my first upgrade to 7. Excited to be working with both. Was up and running in 5 minutes after watching this talk from @IanVS (thank you!)

youtube.com/watch?v=0PhjwygY7A

#Vitejs #storybook

Last updated 2 years ago

Ben Freundorfer · @benfreu
2 followers · 3 posts · Server mastodon.social

My current stack for web apps:






compose

Parts of it feel a bit retro but everything works together nicely, I can now spin up a new project in under 15min and updates in the browser feel instant.

#Vitejs #vuejs #AlpineJS #tailwindcss #django #docker

Last updated 2 years ago

Ian VS · @IanVS
311 followers · 455 posts · Server fosstodon.org

Underrated feature of : It warns me when it starts up if there's a dependency being used that isn't installed (e.g. when switching between branches). It's much nicer than hitting a runtime error, and reminds me that I need to run an `npm install`. 😍

#Vitejs

Last updated 2 years ago

Axel Rauschmayer · @rauschma
3884 followers · 1469 posts · Server fosstodon.org

In build how would one approach a custom output path for a specific file? src/file.js to go in dist/file.js.

Everything else should get the default stuff

#Vitejs

Last updated 2 years ago