Skip to content

Releases: torenware/vite-go

Make host and port of Vite server configurable

11 Apr 20:54
Compare
Choose a tag to compare

Vite's dev server can be configured to run somewhere different from http://localhost:3000, so it's now configurable in vite-go as well.

Prevent wrapped FileServer from exposing directory listings.

09 Apr 20:14
Compare
Choose a tag to compare

Implements an FS wrapper for the bundled file server that prevents the directory listings that http.FileServer implements. Another good tip from Alex Edwards!

Remove some test code left in the previous release

09 Apr 05:14
Compare
Choose a tag to compare

Removed some test code left from the previous release, to prevent anybody from trying what I did there :-)

Added integrated file server for project assets

08 Apr 05:54
Compare
Choose a tag to compare

Since it's fairly challenging to get file serving to work with some configurations, this release adds a pre-configured file server that has reasonable security defaults. Tests added to make sure hidden files stay hidden.

Handle embedded file systems better

05 Apr 22:47
Compare
Choose a tag to compare

embed.FS behaves differently from the os.DirFS version as to what it thinks the "current directory is". See golang/go#43431. This is now special cased.

Hot updating and build tweaks for test build

05 Apr 18:48
Compare
Choose a tag to compare

Hot updates, fixes of the build script, and some documentation changes.

Support for hot updating and improved configuration

05 Apr 18:27
Compare
Choose a tag to compare

Breaking changes:

  • New configuration objects.
  • NewVueGlue takes a configuration object.
  • We now generate tags for hot updating from the Vite server for development.

Use absolute URIs

01 Apr 17:58
Compare
Choose a tag to compare

The release nails down the URIs of the asset links by prepending a "/". This solves the immediate problem, but is not ideal if someone is running their server from a sub-directory of their webroot. Still thinking through how best to make this configurable.

More robust manifest handling

29 Mar 21:26
Compare
Choose a tag to compare

This release:

  • On the sample program, handle a greater variety of vite.config.js configurations.
  • Default to vite.config.js, fall back to vite.config.ts.
  • More in the main README about minimal vite.config.js configuration, since the default generated by npm create vite does not specify a manifest, which we require.

Auto config is back

29 Mar 05:35
Compare
Choose a tag to compare

Separated out the Vue/Vite install on the sample program to allow testing if an install is already present.