Skip to content

Commit 6facc73

Browse files
committed
More updates for the latest version of tailwindcss.
1 parent 567a29f commit 6facc73

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:20-alpine3.17
22

33
RUN apk add zola
44
RUN npm install -g [email protected]
5-
RUN yarn add tailwindcss@latest @tailwindcss/typography preline@latest
5+
RUN yarn add tailwindcss@latest @tailwindcss/cli @tailwindcss/typography preline@latest postcss@latest autoprefixer@latest cssnano@latest
66

77
CMD ["zola"]
88
ENTRYPOINT [ "zola" ]

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ tailwind-build:
138138
-v $(PWD):$(MOUNT_DIR) --workdir $(MOUNT_DIR) \
139139
--entrypoint npx \
140140
$(DOCKER_FQN) \
141-
tailwindcss -i $(TAILWIND_INPUT) -o $(TAILWIND_OUTPUT) --minify
141+
npx @tailwindcss/cli -i $(TAILWIND_INPUT) -o $(TAILWIND_OUTPUT) --minify
142142
cp $(TAILWIND_BASE)/*.js $(JS_OUTPUT)
143143

144144
cicd-tailwind-install:
145145
@echo " >> Installing tailwind ..."
146146
@npm init -y
147147
@npm install
148148
@npm install yarn
149-
@yarn add tailwindcss@latest @tailwindcss/typography preline@latest postcss@latest autoprefixer@latest cssnano@latest
149+
@yarn add tailwindcss@latest @tailwindcss/typography @tailwindcss/cli preline@latest postcss@latest autoprefixer@latest cssnano@latest
150150

151151
cicd-tailwind-build:
152152
@echo " >> Regenerating CSS ..."
153-
@npx tailwindcss/cli -i $(TAILWIND_INPUT) -o $(TAILWIND_OUTPUT) --minify
153+
@npx @tailwindcss/cli -i $(TAILWIND_INPUT) -o $(TAILWIND_OUTPUT) --minify
154154
@cp $(TAILWIND_BASE)/*.js $(JS_OUTPUT)

static/css/site.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/site.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
42

53
@layer components {
64
body {

0 commit comments

Comments
 (0)