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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years ago

Jon Park · @jonspark
140 followers · 943 posts · Server howdee.social

It's been a long while since I've used create-react-app. I was getting an error about having it globally installed when I didn’t.

Running `npx clear-npx-cache` sorted it out for me. stackoverflow.com/a/70365300

#react #createreactapp #js #stackoverflowdrivendevelopment

Last updated 2 years ago

I use :vim: · @asteroidrainfall
58 followers · 733 posts · Server fosstodon.org

Should libraries handle themselves?

I'm working in a library for internal use. It will be acting as a utility wrapper for a larger library and will be used in two main use cases and custom projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using for transpiling.

Is this necessary or should this even be done?

#npm #bundling #nodejs #createreactapp #webpack #babel #javascript #dev

Last updated 3 years ago

Elephantidae · @Elephantidae
34 followers · 287 posts · Server home.social

Does anyone have a suggestion for a good (free at low volume) analytics service that works well with ? Other than Google.

#react #coding #reactjs #createreactapp #js #javascript

Last updated 3 years ago

Elephantidae · @Elephantidae
1 followers · 44 posts · Server home.social

How to verify a website in a M profile when the website is a app?

I have tried putting the verification link in the public/index.html file both inside and outside of <div id="root">.

I have also tried putting it on the page of the final rendered app.

But neither works. Ideas?

#reactjs #Mastodon #mastodonhelp #mastodonadmin #createreactapp

Last updated 3 years ago