mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
build: fix css bundling bug with new esbuild
local testing was being done with an older version of esbuild which didn't mind @tailwind statements before @imports (it complained, but did its job). On the latest version used in Docker builds, it would leave the @import statements intact which broke things like modals.
This commit is contained in:
4
Makefile
4
Makefile
@@ -131,7 +131,7 @@ bundle-css:
|
||||
npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/web/css/bundle.css $(TAILWIND)
|
||||
# npx postcss -o $(DATA)/web/css/bundle.css $(DATA)/web/css/bundle.css
|
||||
|
||||
inline:
|
||||
inline-css:
|
||||
cp html/crash.html $(DATA)/crash.html
|
||||
$(UNCSS)
|
||||
node scripts/inline.js root $(DATA) $(DATA)/crash.html $(DATA)/crash.html
|
||||
@@ -177,4 +177,4 @@ clean:
|
||||
-rm docs/docs.go docs/swagger.json docs/swagger.yaml
|
||||
go clean
|
||||
|
||||
all: configuration npm email typescript variants-html bundle-css inline swagger copy compile
|
||||
all: configuration npm email typescript variants-html bundle-css inline-css swagger copy compile
|
||||
|
||||
Reference in New Issue
Block a user