mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +01:00
fix tailwind debug and skip language model on dev.
This commit is contained in:
2
justfile
2
justfile
@@ -1,7 +1,7 @@
|
|||||||
export PATH := "./node_modules/.bin:" + env_var('PATH')
|
export PATH := "./node_modules/.bin:" + env_var('PATH')
|
||||||
|
|
||||||
dev tags='':
|
dev tags='':
|
||||||
fd 'go|templ|base.css' | entr -r bash -c 'TAILWIND_DEBUG=true SKIP_LANGUAGE_MODEL=true && templ generate && go build -tags={{tags}} -o /tmp/njump && PORT=3001 /tmp/njump'
|
fd 'go|templ|base.css' | entr -r bash -c 'templ generate && go build -tags={{tags}} -o /tmp/njump && TAILWIND_DEBUG=true SKIP_LANGUAGE_MODEL=true PORT=3001 /tmp/njump'
|
||||||
|
|
||||||
build: templ tailwind
|
build: templ tailwind
|
||||||
go build -o ./njump
|
go build -o ./njump
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -91,9 +91,9 @@ func main() {
|
|||||||
"module.exports", "tailwind.config", 1,
|
"module.exports", "tailwind.config", 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
styleb, err := os.ReadFile("tailwind.css")
|
styleb, err := os.ReadFile("base.css")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err).Msg("failed to load tailwind.css")
|
log.Fatal().Err(err).Msg("failed to load base.css")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
style := string(styleb)
|
style := string(styleb)
|
||||||
|
|||||||
Reference in New Issue
Block a user