Skip to content

Commit

Permalink
Removed tailwind build step use cdn instead
Browse files Browse the repository at this point in the history
  • Loading branch information
joeychilson committed Dec 29, 2023
1 parent b790646 commit a484dd1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1,002 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
dev: templ css run
dev: templ run

templ:
templ generate

css:
tailwindcss -c ./assets/tailwind.config.js -i ./assets/css/app.css -o ./static/css/app.css

run:
go run main.go

build:
templ generate && tailwindcss -c ./assets/tailwind.config.js -i ./assets/css/app.css -o ./static/css/app.css && go build -o ./tmp/main .
templ generate && go build -o ./tmp/main .
3 changes: 0 additions & 3 deletions assets/css/app.css

This file was deleted.

9 changes: 0 additions & 9 deletions assets/tailwind.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/default.templ
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ templ Default(title string) {
<meta name="description" content="A Hacker News clone using go, templ, tailwind and no JS."/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="icon" href="/static/favicon.svg"/>
<link rel="stylesheet" href="/static/css/app.css"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
@components.Header()
<body class="bg-gray-100">
Expand Down
11 changes: 10 additions & 1 deletion layouts/default_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a484dd1

Please sign in to comment.