File filtering doesn't work as expected.
I am working on a pretty big website with almost 3k HTML so the build is taking way longer when I include every page and the build is failing. I am now trying to include only the homepage in the build. Which I thought maybe I could add easily with the Exclude option. But it seems like not working as I expected. Can you please let me know if this is a bug or if I am missing something here?
This completely ignores inlining CSS for the whole site.
integrations: [
playformInline({
Exclude: [
(File) => File !== "./dist/index.html",
]
})
],
And this inlines every page including "./dist/index.html".
integrations: [
playformInline({
Exclude: [
(File) => File === "./dist/index.html",
]
})
],
Thanks, we'll take a look.
This should work:
integrations: [
playformInline({
Exclude: [
(File) => {
// Check the full path name
console.log(File);
// Ignore all files, but dist/index.html
return !File.includes("dist/index.html");
},
],
})
],
Thank you so much @NikolaRHristov, that worked!