Skip to content

Commit

Permalink
Consider JS in PurgeCSS.
Browse files Browse the repository at this point in the history
Otherwise, PurgeCSS deletes classes created by JS code.
  • Loading branch information
Gaelan committed Jul 10, 2023
1 parent 3190a34 commit 5938141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
...(process.env.NODE_ENV === "production"
? [
require("@fullhuman/postcss-purgecss")({
content: ["./.11ty-vite/**/*.html"],
content: ["./.11ty-vite/**/*.html", "./.11ty-vite/**/*.js"],
safelist: ["usa-js-loading"],
extractors: [
{
Expand Down

0 comments on commit 5938141

Please sign in to comment.