remove purgcss as tailwind by default did purge, and update packages and modules

This commit is contained in:
Somrat
2024-05-05 15:51:53 +06:00
parent 9036d85e19
commit 4699c6465e
3 changed files with 28 additions and 69 deletions

View File

@@ -1,30 +1,29 @@
module hugoplate.netlify.app
go 1.20
go 1.21
require (
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/announcement v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/modal v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240423040330-6260da698660 // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20240423040330-6260da698660 // indirect
github.com/zeon-studio/hugoplate v0.0.0-20240422031018-f1a3ce07e1d2 // indirect
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/announcement v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/modal v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20240504032439-79fc09d96848 // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20240504032439-79fc09d96848 // indirect
)

View File

@@ -1,45 +1,6 @@
const purgecss = {
content: ["./hugo_stats.json"],
defaultExtractor: (content) => {
const elements = JSON.parse(content).htmlElements;
return [
...(elements.tags || []),
...(elements.classes || []),
...(elements.ids || []),
];
},
safelist: [
/^swiper-/,
/^lb-/,
/^gl/,
/^go/,
/^gc/,
/^gs/,
/^gi/,
/^gz/,
/^gprev/,
/^gnext/,
/^desc/,
/^zoom/,
/^search/,
/^:is/,
/dark/,
/show/,
/dragging/,
/fullscreen/,
/loaded/,
/visible/,
/current/,
/active/,
/mark/,
],
};
module.exports = {
plugins: {
tailwindcss: {},
"@fullhuman/postcss-purgecss":
process.env.HUGO_ENVIRONMENT === "production" ? purgecss : false,
autoprefixer: process.env.HUGO_ENVIRONMENT === "production" ? {} : false,
autoprefixer: {},
},
};