What are the analogues of PostCSS for go

100 views
Skip to first unread message

Денис Мухортов

unread,
May 27, 2021, 5:09:18 AM5/27/21
to golang-nuts
I would like to consider several alternatives. Pros and cons of each of them. Thank you in advance)

Howard C. Shaw III

unread,
May 27, 2021, 3:32:30 PM5/27/21
to golang-nuts
Take this with a grain of salt, as I've never used PostCSS and had to look up what it even was.

https://github.com/ysugimoto/gssp - this is Golang Style Sheet Postprocessor which appears to be at least directed at the same task.

Of course, as PostCSS is a tool that applies to .css files, there is no particular reason you need to reimplement it in Go to be able to use it with Go based serving; the Hugo Go framework apparently includes PostCSS integration of some sort: https://andrewdavis.me/post/rewriting-my-personal-site-with-hugo/ has an example under the heading Integrated CSS Processing.

Given that, as I understand it, part of the appeal of PostCSS is the library of modules for it, and the fact that these modules are certainly not going to be compatible with a Go reimplementation, you may need to consider whether you use any modules and what would be involved in reimplementing their functionality before moving to a pure-Go solution.
Reply all
Reply to author
Forward
0 new messages