Skip to content

Simple devserver example for Golang templates + tailwind + JIT

Notifications You must be signed in to change notification settings

17twenty/go-tailwind-livereload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveReload + Tailwind + Golang

Installation

cd web
npm install

Developing Pages

Best to use two consoles

npm run dev
go build ./cmd/dev-server/
./dev-server
2021/07/23 19:22:53 dev-server started on port  :8080

The page should open automatically to the /index template

Building for production

npm run build

> build
> NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./static/tailwind.css -o ./static/main.css --jit --minify


warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.

Done in 189ms.

About

Simple devserver example for Golang templates + tailwind + JIT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •