From 74c0bb7f2e9104c3253d60497b84172f888fac1f Mon Sep 17 00:00:00 2001 From: budparr Date: Tue, 26 Mar 2019 10:30:32 -0400 Subject: [PATCH] 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. --- themes/gohugoioTheme/webpack.config.js | 40 +++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/themes/gohugoioTheme/webpack.config.js b/themes/gohugoioTheme/webpack.config.js index 2a8c25df3..7014be089 100644 --- a/themes/gohugoioTheme/webpack.config.js +++ b/themes/gohugoioTheme/webpack.config.js @@ -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" + // ] + // }) ); }