Javi · @itsjavi
1 followers · 3 posts · Server me.dm

#storybook #react #vitejs

Last updated 1 year ago

Chris Smith · @chris22smith
26 followers · 56 posts · Server home.social

Do you still actively minify .css and .js files? Or is that all done by magic, with bundlers like Vite.js or Webpack or delivery services like Cloudflare, and not something you need to think about?

To ask it another way, do you have .min.css files in your codebase?

#css #javascript #vitejs #webpack #cloudflare

Last updated 1 year ago

John Morton · @johnmorton
196 followers · 505 posts · Server universeodon.com

While working on a module idea, I fell down a rathole of improving my development workflow to build modules. What's it do?

1. The workflow uses for a demo page to make working on the module easier, with the goodies Vite brings, i.e. working with , HMR, and speed.

2. The workflow publishes that demo page with as your demo site in your repo to GitHub Pages.

3. GitHub Actions also use Vite to build both a Common JS and ES module version of your module and then publish to NPM when you change the version number.

I’ve posted my repo below. There are some docs, but I hope to continue to improve them.

github.com/johnfmorton/vite-mo

#JavaScript #vitejs #typescript #githubactions

Last updated 2 years ago

James Finley · @thefinley
35 followers · 461 posts · Server bibly.com

Running `vite build ` is including *.test.tsx files, which is throwing big errors because of mocks. Tests shouldn't be included in the build. How do I exclude them?

#javascript #react #vitejs #frontend #webdevelopment

Last updated 2 years ago

Frank Wiles · @frank
150 followers · 113 posts · Server frankwiles.social

I always neglect to set up relative imports with modern JS tooling. It used to be hard, but apparently it's far easier now. At least with ViteJS it is. Here is how to configure an alias of '@' to allow relative imports from anywhere in your codebase

#vitejs #javascript

Last updated 2 years ago

nystudio107 · @nystudio107
108 followers · 27 posts · Server masto.ai

If you use `vite-plugin-favicon` you should update to version 1.1.5 for dramatically improved code-start times for the Vite devserver github.com/khalwat/vite-plugin

32s before / 5s after in our test env

#vitejs

Last updated 2 years ago

nystudio107 · @nystudio107
70 followers · 9 posts · Server masto.ai

πŸ“’ Vitest is the neatest! πŸŽ‰ Using the @vitest UI you can see a visual representation of the module & test dependency graph!

We just love what Vitest does for testing w/ @vite so fast & interactive! vitest.dev

#vitest #vitejs #javascript #typescript #tdd

Last updated 2 years ago

nystudio107 · @nystudio107
59 followers · 7 posts · Server masto.ai

πŸ“’ Vitest is the neatest! πŸŽ‰ Using the @vitest UI you can see a visual representation of the module & test dependency graph!

We just love what Vitest does for testing w/ @vite so fast & interactive! vitest.dev

#vitest #vitejs #javascript #typescript #tdd

Last updated 2 years ago

nystudio107 · @nystudio107
59 followers · 7 posts · Server masto.ai

πŸ“’ Vitest is the neatest! πŸŽ‰ Using the @vitest UI you can see a visual representation of the module & test dependency graph!

We just love what Vitest does for testing w/ @vite so fast & interactive! vitest.dev

#vitest #vitejs #javascript #typescript #tdd

Last updated 2 years ago

nystudio107 · @nystudio107
53 followers · 5 posts · Server masto.ai

For anyone who is interested in a self-contained simple demo of test driven development (TDD) of code & components with Vitest: github.com/nystudio107/charcut

#vuejs #vitejs #vitest #tdd #typescript

Last updated 2 years ago

Jeff Markel · @jeffmarkel
134 followers · 508 posts · Server mas.to

So, is "vite"- the javascript bundler - pronounced "Vite" - like "white" with a V, or "Veet" - like in the French "Allez, vite!"

#javascript #vitejs #vite

Last updated 2 years ago

Colin 🐈🌱 · @Colin
30 followers · 268 posts · Server meow.social

Nothing is more satisfying than ending the day with all unit tests passing.

#Vitest #vitejs #typescript #programming

Last updated 2 years ago

Kagan MacTane · @kagan
84 followers · 354 posts · Server wandering.shop

Holy cow! Just discovered something really cool about : If you have one Vite server running in "npm run dev", thus taking its default port 5173, and you start up another one... it auto-detects that and steps up to port 5174 automagically! Instead of just giving you a "cannot bind to port" error like CRA or other similar tools. That's super-sweet. Kudos to the vitejs.dev/ developers!

#vitejs #webdevelopment

Last updated 2 years ago

ar.al🌻 · @aral
21222 followers · 19353 posts · Server mastodon.ar.al

If you missed the live stream, you can watch our unscheduled Small Is Beautiful episode for the Svelte Nano Donation component release.

We covered:

- using it with SvelteKit
- using it in plain html/css (via Vite)
- accessibility considerations, etc.

small-tech.org/events/small-is

#a11y #smalltech #vitejs #sveltekit #svelte #nano

Last updated 4 years ago