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:
Harvey Tindall
2022-01-26 14:26:10 +00:00
parent fafb524a47
commit be1d081629
5 changed files with 14 additions and 8 deletions

View File

@@ -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