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 authored and Bjørn Erik Pedersen committed 2019-03-26 15:52:35 +01:00
1 parent 397b7284f2
commit 74c0bb7f2e
1 file changed
+20 -20
+20 -20
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"
// ]
// })
);
}