mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 04:13:23 +00:00
Hugo v0.161's css.TailwindCSS reads node_modules/.bin/tailwindcss and expects either a symlink or a Node-shebang script. pnpm's default isolated linker creates shell wrappers (#!/bin/sh with NODE_PATH manipulation), which Hugo rejects with "binary tailwindcss is not a Node.js script". With node-linker=hoisted, pnpm flattens node_modules and creates plain symlinks for Node-shebang bins — same shape npm produces, which Hugo handles via its symlink branch in resolveNodeBin (common/hexec/exec.go). - Add .npmrc with node-linker=hoisted to all 9 templates and test/ - Verified end-to-end: academic-cv builds cleanly against published modules/blox with Hugo v0.161.1 - Kit root and modules/blox keep pnpm's isolated linker for monorepo