0.2.6 • Published 3 years ago

vite-dir v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Vite Dir

A shortcut command that runs vite dev server with vite-plugin-list-directory-contents so you get a live reloaded directory of files.

But, Why?

I made this for my tutorials, where we create lots of little projects. Running this on a directory of projects will process any .html file as it's own project. This gives you a nice UI where you can click through your projects.

Live reloading, typescript loading, CSS Parsing, all the good stuff vite gives you.

Usage

As an npx command:

npx vite-dir

or a Global install:

npm i -g vite-dir
vite-dir

You can also specify a directory:

vite-dir app/

Configs

Just like vite, no config is needed, but if you have a local vite.config.js file, it will use that and add the directory plugin.

Flags

All flags get passed to vite's server config.

example:

vite-dir --port 6969 --host --https true

Flags that specify things outside the server don't work. Pass them in a custom config, or just setup a project with vite-plugin-list-directory-contents instead.

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago