Skip to content

Commit

Permalink
fix(website): fixed tailwind not purging
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Dec 18, 2021
1 parent 5141cec commit bd58daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bonnie.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ site.subcommands.build-tailwind.cmd = [
site.subcommands.build-tailwind.desc = "builds a tailwind stylesheet for development (no purging)"
site.subcommands.build-tailwind.subcommands.prod.cmd = [
"cd website",
"NODE_ENV=production npx tailwindcss -c ./tailwind.config.js -o ./static/tailwind.css --minify"
"NODE_ENV=production tailwindcss -c ./tailwind.config.js -o ./static/tailwind.css --minify"
]
site.subcommands.build-tailwind.subcommands.prod.desc = "builds a tailwind stylesheet for production (purging and minifying)"
site.subcommands.deploy.cmd = [
Expand Down
4 changes: 1 addition & 3 deletions website/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ const colors = require("tailwindcss/colors");

module.exports = {
content: [
"./src/**/*.rs",
"./src/**/*.{rs,html,css}",
"./index.html",
"./src/**/*.html",
"./src/**/*.css",
"./static/**/*.css",
],
darkMode: process.env.NODE_ENV == "production" ? "media" : "class",
Expand Down

0 comments on commit bd58daa

Please sign in to comment.