Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/negrel/hugo-theme-pico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Negrel <negrel.dev@protonmail.com>2020-12-25 13:40:44 +0300
committerAlexandre Negrel <negrel.dev@protonmail.com>2020-12-25 13:40:44 +0300
commitd39a728bead2d07fb087431186bb999fc38de09a (patch)
tree7d9c5b0b30c1acaff289c276a10bcd3962e7b483
parent6e461fb846e23ba31788d2ab3b3d71aa105d8097 (diff)
fixing purgecss for production build
-rw-r--r--assets/config/postcss.config.js10
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