Remove purge from Webpack, temporarily

Purge is removing CSS from the themes site because that site is not present for Purge to know to keep those classes. This change updates the CSS build to not use Purge to fix the currently broken public site, but commenting out only to add back when we have a permanent solution.
This commit is contained in:
budparr 2019-03-26 10:30:32 -04:00 committed by Bjørn Erik Pedersen
parent 397b7284f2
commit 74c0bb7f2e

View File

@ -89,33 +89,33 @@ module.exports = env => {
};
if (process.env.NODE_ENV == "production") {
console.log("now with purge");
CONFIG.plugins.push(
new CleanWebpackPlugin(["./assets/output"], {
root: __dirname,
verbose: true,
dry: false,
allowExternal: true
}),
new PurgecssPlugin({
paths: glob.sync([
path.join(__dirname, "layouts/**/*.html")
]),
extractors: [
{
extractor: TailwindExtractor,
extensions: ["html"]
}
],
fontFace: false,
whitelist: [
"pagination",
"#TableOfContents ul li",
"chroma",
"expand",
"hljs"
]
})
//, Temporarily moving purge to fix themes site.
// new PurgecssPlugin({
// paths: glob.sync([
// path.join(__dirname, "layouts/**/*.html")
// ]),
// extractors: [
// {
// extractor: TailwindExtractor,
// extensions: ["html"]
// }
// ],
// fontFace: false,
// whitelist: [
// "pagination",
// "#TableOfContents ul li",
// "chroma",
// "expand",
// "hljs"
// ]
// })
);
}