Purpose#
This directory holds web resources
Organization#
WARNING
If any pathing is updated, make sure to update esbuild entrypoints and pathing in the Taskfile.yml
Libs#
This directory serves as an entrypoint for any custom JS/TS libraries needed for the project to run
Currently it is being used to hold the following:
Resources#
Static#
This directory contains static web assets
assets.go#
This file adds some useful pathing variables and sets up the embedded static directory using hashfs
static_dev.go#
When using the -tags=dev build tag, this file supplies an http handler function that serves static assets directly without embedding them, and a function for locating them
static_prod.go#
When using the -tags=prod build tag (or no build tag), this file supplies an http handler function that embeds static assets directly into the binary using hashfs, and a function for locating them