我添加了一個“腳本”文件夾作為我的 Eleventy 站點的直通副本,并在其中安裝了一些 npm 依賴項,以便在頁面加載時運行腳本。所以我的 .eleventy.js 有這樣幾行: eleventyConfig.addPassthroughCopy("img"); eleventyConfig.addPassthroughCopy("scripts"); eleventyConfig.addPassthroughCopy("css");但是當我運行時npx eleventy,我得到一個構建錯誤,上面寫著,Language does not exist: shProblem writing Eleventy templates: (more in DEBUG output)> Having trouble rendering liquid (and markdown) template ./scripts/wb-service-worker/node_modules/bs-fetch/README.md為什么它試圖在直通副本中“呈現液體”?(我認為直通副本的全部意義在于它不會嘗試解析它們。)如何讓它停止?
為什么 eleventy 試圖解析直通副本中的文件?
HUWWW
2023-02-17 15:41:02