Skip to content

Commit

Permalink
fix: stop uncss from removing custom PC (PyCon) classes
Browse files Browse the repository at this point in the history
  • Loading branch information
benabraham committed Aug 16, 2023
1 parent 06bb944 commit c5862a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const removeUnusedCss = () =>
uncss({
html: ["templates/**/*.html"],
media: ["print"], // process additional media queries
ignore: [".PC-nav-link-highlight"], // provide a list of selectors that should not be removed by UnCSS
ignore: [/\.PC-.+/], // provide a list of selectors or regular expressions that should not be removed by UnCSS
}),
])
)
Expand Down Expand Up @@ -131,7 +131,7 @@ const processCss = series(cleanupCss, sassCompile);
export const develop = series(cleanupAll, copyStatic, sassCompile, parallel(runServer, startBrowsersync, watchFiles));

// build everything for production
export const build = series(cleanupAll, copyStatic, sassCompile/*, removeUnusedCss*/);
export const build = series(cleanupAll, copyStatic, sassCompile, removeUnusedCss);

// the default task runs when you run just `gulp`
export default build;

0 comments on commit c5862a6

Please sign in to comment.