This example demonstrates usage of sørvør with minimal boilerplate.
The public/index.html
file includes an annotated reference to public/index.js
.
The esbuild
annotation in public/index.html
instructs sørvør
to build public/index.js
file with esbuild
.
sørvør
should be installed, preferably using go binaries:
curl -sf https://gobinaries.com/osdevisnot/sorvor | sh
sorvor --minify --sourcemap
- build the project with minification and sourcemaps
sorvor --serve
- starts a live reload dev server at http://localhost:1234, and rebuilds the index.js file on change.