diff options
author | Alexandre Negrel <negrel.dev@protonmail.com> | 2020-12-25 13:40:44 +0300 |
---|---|---|
committer | Alexandre Negrel <negrel.dev@protonmail.com> | 2020-12-25 13:40:44 +0300 |
commit | d39a728bead2d07fb087431186bb999fc38de09a (patch) | |
tree | 7d9c5b0b30c1acaff289c276a10bcd3962e7b483 | |
parent | 6e461fb846e23ba31788d2ab3b3d71aa105d8097 (diff) |
fixing purgecss for production build
-rw-r--r-- | assets/config/postcss.config.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/assets/config/postcss.config.js b/assets/config/postcss.config.js index 7f36518..d53bbdc 100644 --- a/assets/config/postcss.config.js +++ b/assets/config/postcss.config.js @@ -1,17 +1,11 @@ const path = require('path') -//const themeDir = path.join(__dirname, 'themes', 'pico') + '/' -const themeDir = path.join(__dirname) - -console.log(themeDir); +const themeDir = __dirname; const purgecss = require('@fullhuman/postcss-purgecss')({ // Specify the paths to all of the template files in your project content: [ - path.join(themeDir,'layouts,' , '**', '*.html'), - path.join(themeDir, 'exampleSite', 'content', '**', '*.html'), - path.join('layouts', '**', '*.html'), - path.join('content', '**', '*.html'), + '**/*.html' ], // This is the function used to extract class names from your templates |