Join the Webstudio community

Updated 3 months ago

Disable minification when building SSG

At a glance

The community member is asking if there is an easy way to output unminified HTML for static site generator (SSG) builds, while preserving comments and indentation in their JavaScript and CSS. They mention using prettier in their repository but are unsure where to configure it or use a custom build command. The comments suggest checking the project settings to see if minification is enabled, but this would only apply to CSS. The community members conclude that the minification is likely already disabled, but appreciate the suggestion.

Useful resources
Hi,

Is there an easy way to output unminified HTML for SSG builds? If possible, I don't want to lose comments and the indentation I have in my JS and CSS featured in the page. I see use of "prettier" in the repository but not sure if there's an appropriate place I can put it in config or use a custom build command for my synced project locally.

Thanks
J
b
4 comments
Have you tried unchecking this in the project settings? I'm not sure if it's minified or just non-atomic.
Attachment
CleanShot_2024-11-13_at_15.11.482x.png
EDIT - I didn't read your post properly. If this does anything, it would only apply for CSS.
Yeah, no worries. I think it is already unticked, but thanks for the suggestion
Add a reply
Sign up and join the conversation on Discord