mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 03:12:56 +00:00
fix(templates): use hoisted node-linker so Hugo v0.161 can resolve tailwindcss
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
This commit is contained in:
1 parent
f5aabdd310
commit
237a7e2d59
11 files changed
+276
-368
No files matched your search
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
Generated
+266
-368
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
@@ -0,0 +1 @@
|
||||
node-linker=hoisted
|
||||
Reference in new issue
Block a user