feat(bots.php, htaccess.liquid): share files with specific bots

This commit is contained in:
Cory Dransfeldt 2025-05-30 14:54:21 -07:00
parent 79464d6769
commit 92e123cd57
No known key found for this signature in database
6 changed files with 66 additions and 18 deletions

View file

@ -2,7 +2,7 @@ import htmlmin from 'html-minifier-terser';
export const htmlConfig = (eleventyConfig) => {
eleventyConfig.addTransform('html-minify', (content, path) => {
if (path && (path.endsWith('.html') || path.endsWith('.php'))) {
if (path && (path.endsWith('.html') || path.endsWith('.php') && !path.includes("api"))) {
return htmlmin.minify(content, {
collapseBooleanAttributes: true,
collapseWhitespace: true,