feat(bots.php, htaccess.liquid): share files with specific bots
This commit is contained in:
parent
79464d6769
commit
cd34bfa214
6 changed files with 67 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue