我添加了一个“脚本”文件夹作为我的 Eleventy 站点的直通副本,并在其中安装了一些 npm 依赖项,以便在页面加载时运行脚本。
所以我的 .eleventy.js 有这样几行:
eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy("scripts");
eleventyConfig.addPassthroughCopy("css");
但是当我运行时npx eleventy,我得到一个构建错误,上面写着,
Language does not exist: sh
Problem writing Eleventy templates: (more in DEBUG output)
> Having trouble rendering liquid (and markdown) template ./scripts/wb-service-worker/node_modules/bs-fetch/README.md
为什么它试图在直通副本中“呈现液体”?(我认为直通副本的全部意义在于它不会尝试解析它们。)如何让它停止?
慕码人2483693
相关分类