Fix 11ty build error - ignore mobile.html template processing
Issue: 11ty was trying to process mobile.html as Liquid template, failing on React JSX syntax. Fix: Added eleventyConfig.ignores to skip template processing, still copies file via passthrough. This allows the HTML/React file to deploy without build errors.
This commit is contained in:
@@ -7,7 +7,11 @@ module.exports = function(eleventyConfig) {
|
|||||||
// Decap CMS admin panel
|
// Decap CMS admin panel
|
||||||
eleventyConfig.addPassthroughCopy("admin");
|
eleventyConfig.addPassthroughCopy("admin");
|
||||||
|
|
||||||
// Mobile task manager
|
// Mobile task manager - IGNORE, don't process as template
|
||||||
|
eleventyConfig.ignores.add("admin/mobile.html");
|
||||||
|
eleventyConfig.addPassthroughCopy("admin/mobile.html");
|
||||||
|
|
||||||
|
// Tasks folder
|
||||||
eleventyConfig.addPassthroughCopy("tasks");
|
eleventyConfig.addPassthroughCopy("tasks");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user