Skip to content

Commit

Permalink
fix: correct the style of dark mode in production
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 19, 2022
1 parent b82962f commit f01f912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ HUGO_ENABLEGITINFO = "true"
GO_VERSION = "1.17.7"

[context.production]
command = "cd exampleSite && npm install && npm update && hugo --minify --themesDir=../../ --theme=repo"
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo"

[context.production.environment]
HUGO_ENV = "production"

[context.deploy-preview]
command = "cd exampleSite && npm install && npm update && hugo --minify --themesDir=../../ --theme=repo -b=$DEPLOY_PRIME_URL"
command = "cd exampleSite && npm install && hugo --minify --themesDir=../../ --theme=repo -b=$DEPLOY_PRIME_URL"

[[headers]]
for = "/*"
Expand Down
2 changes: 1 addition & 1 deletion purgecss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
// deep: [/blue$/],
greedy: [/carousel-indicators$/]
},
dynamicAttributes: ['data-bs-popper', 'data-theme', 'data-palette', 'role', 'placeholder-shown']
dynamicAttributes: ['data-bs-popper', 'data-theme', 'data-bs-theme', 'data-palette', 'role', 'placeholder-shown']
});

exports.default = purgecss;

0 comments on commit f01f912

Please sign in to comment.