0.2.6 • Published 1 year ago

vite-dir v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago