Skip to content

use purgecss with hugo #42

Closed Answered by hugo-sid
jerry011235 asked this question in Q&A
May 9, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Greetings

Hi @jerry011235.

the theme is very simple and fast and I like it very much!
Thank you for your work!

I'm glad you liked this theme. You are most welcome.

Probable solution

I have not tried to clone the repo and do all the NPM stuff, but I feel this could be the solution to your problem:

You mentioned that, you modified line 15 in myblog\themes\hugo-blog-awesome\layouts\partials\head.html to this:

    {{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "style.css") | postCSS | minify | fingerprint }}

    <!--
    {{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jerry011235
Comment options

You must be logged in to vote
3 replies
@hugo-sid
Comment options

@jerry011235
Comment options

@hugo-sid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants