Skip to content

Commit

Permalink
Update purgecss config
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Nov 8, 2023
1 parent fbbd421 commit a3fd203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ fi

# Remove redundant css from prod site
if which purgecss; then
(
cd ../build
purgecss --config $SCRIPT_DIR/purgecss.config.js
purgecss --config $SCRIPT_DIR/purgecss.config.js --css icon-packs/*.css --output icon-packs
)
purgecss --config purgecss.config.js
fi

# Swap versions asap
Expand Down
6 changes: 3 additions & 3 deletions purgecss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
content: ['*.html', '**/*.html', '*.js', '**/*.js'],
css: ['*.css'],
output: ['.'],
content: ['public/*.html', 'public/**/*.html', 'public/*.js', 'public/**/*.js'],
css: ['public/*.css'],
output: 'public',
dynamicAttributes: ["data-bs-theme", "aria-expanded"],
safelist: [/phase-/]
}

0 comments on commit a3fd203

Please sign in to comment.