mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 05:54:50 -04:00
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:
parent
397b7284f2
commit
74c0bb7f2e
@ -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"
|
||||
// ]
|
||||
// })
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user