Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { env } from 'process';

import { minify } from 'html-minifier-terser';

export default function (eleventyConfig) {
// Copy static assets
eleventyConfig.addPassthroughCopy('public');

// In dev mode, don't minify
if (env.NODE_ENV === 'production') {
eleventyConfig.addTransform('htmlmin', function (content, outputPath) {
if (outputPath?.endsWith('.html')) {
const minified = minify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true,
minifyCSS: true,
minifyJS: {
safari10: false,
ecma: undefined,
output: { comments: false },
},
});
return minified;
}
return content;
});
}

return {
dir: {
input: 'src-11ty',
output: 'dist',
},
};
}
27 changes: 0 additions & 27 deletions home-assistant-connect-zwa-2/index.html

This file was deleted.

102 changes: 0 additions & 102 deletions home-assistant-connect-zwa-2/install-portable.html

This file was deleted.

98 changes: 0 additions & 98 deletions home-assistant-connect-zwa-2/install.html

This file was deleted.

105 changes: 0 additions & 105 deletions home-assistant-connect-zwa-2/use-poe.html

This file was deleted.

Loading
Loading