We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello again,
Continuing my journey with 11ty, I saw that my sitemap.xml had some big holes in it.
Do you think this would be interesting to change the html-config.js like this
html-config.js
eleventy-excellent/src/_config/plugins/html-config.js
Lines 3 to 7 in 3f56328
To something like this :
const isProduction = process.env.ELEVENTY_ENV === 'production'; const extensions = ['.html', '.xml'] export const htmlConfig = eleventyConfig => { eleventyConfig.addTransform('html-minify', (content, path) => { if (path && extensions.some(ext => path.endsWith(ext)) && isProduction) {
The text was updated successfully, but these errors were encountered:
I'll look into that, though I believe doing it like that does also make the .xml feeds invalid
Sorry, something went wrong.
I have just checked with 2 xml validators and it seems to be ok.
No branches or pull requests
Hello again,
Continuing my journey with 11ty, I saw that my sitemap.xml had some big holes in it.
Do you think this would be interesting to change the
html-config.js
like thiseleventy-excellent/src/_config/plugins/html-config.js
Lines 3 to 7 in 3f56328
To something like this :
The text was updated successfully, but these errors were encountered: