基础知识: go 基本环境配置 GCC GCC-C++ g++等相关需要提前安装好
[root@iZ3n2gw1h0luhgZ myblog]# hugo server -D
Start building sites …
hugo v0.87.0 linux/amd64 BuildDate=unknown
Error: Error building site: TOCSS: failed to transform "ananke/css/main.css" (text/css). Check your Hugo installation; you need the extended version to build SCSS/SASS.
Built in 28 ms
解决该报错,官方回复:
以及stack overflow
sass - How to setup SCSS with Hugo - Stack Overflow
也就是使用 extended版本即可。在真实情况下,我却遇到如下情况:
说明hugo-extended并未考虑到库依赖,故需要源码编译加上参数: