惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
D
DataBreaches.Net
J
Java Code Geeks
月光博客
月光博客
MyScale Blog
MyScale Blog
博客园 - Franky
Jina AI
Jina AI
量子位
博客园 - 聂微东
博客园 - 叶小钗
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
博客园 - 【当耐特】
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
小众软件
小众软件
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
博客园_首页

HUGO - Latest posts

Fit: unsupported JPEG feature New version of gotmplfmt released Set tab size on GitHub Is `go get <module>` required to import Hugo modules? Somebody set us up the BOM, or UTF-8 byte-order marker corrupts CSV maps Has anyone benchmarked build times for webP vs Avif? How does the team prefer to receive feedback for their docs Hugo Website Sometimes Serves an Older Version of a Page After Content Changes Systems & Signals — My Hugo DevOps Portfolio with Focus Tools, Matrix Mode and PWA Migrating Hugo from Netlify to Cloudflare Workers (Handling Contact Forms, D1, Turnstile & Analytics) AmazingRise/hugo-theme-diary broken with new hugo version Chroma YAML lexer issue Locate the template source for a deprecation warning Highlight template code in discourse forum using highlightjs-hugo Automatic Syntax Highlighting for Hugo templates Hugo v0.166.0 released Tailwind Labs is joining Shopify ExampleSite and Tailwind Introducing Stacknote — an editorial Hugo theme for technical blogs Impressed returning to Hugo! How to associate / connect between content files (md) and data files Multilingual links have changed Hugo's modular configuration syntax and strict validation are still in conflict How to left justify content in all pages using Ananke Executing Hugo builds inside of Go with a custom config? "Hero Images" on website's front page only (with carousell - rotates several images) Menu nesting doesn't work, hugo v0.165.0 (ananke theme, but maybe others work?) What should I name a Hugo-related IDE? How to deal with image processing failures when updating to 0.165.0? Question about the multi-dimensional content model
How to mount a node_modules folder?
@doompadee Doompadee · 2026-08-26 · via HUGO - Latest posts

Hello, I cannot figure out how to mount a node_modules package in order to have an import resolved by css.PostCSS when using Hugo 0.165.0. I use tailwindcss 3 and therefore have to stay with css.PostCSS if I understand that part correctly. [[module.mounts]] source = &quot;node_modules/maplibre-gl/dist&quot; target = &quot;assets/maplibre-gl&quot; hugo config mount looks good: &quot;mounts&quot;: [ { &quot;source&quot;: &quot;assets&quot;, &quot;target&quot;: &quot;assets&quot; }, { &quot;source&quot;: &quot;content&quot;, &quot;target&quot;: &quot;content&quot; }, { &quot;source&quot;: &quot;node_modules/maplibre-...