1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 19:21:18 -04:00

use lit-html instead of unsafe innerHTML on /projects

This commit is contained in:
2021-07-28 11:13:32 -04:00
parent ac3fb5ae95
commit 574ea65d8d
6 changed files with 300 additions and 93 deletions

View File

@@ -95,6 +95,23 @@ GitHub: https://github.com/jakejarvis/jarv.is`,
},
],
],
plugins: [
[
"template-html-minifier",
{
modules: {
"lit-html": ["html"],
"lit-element": ["html"],
},
htmlMinifier: {
html5: true,
collapseWhitespace: true,
removeComments: false,
caseSensitive: true,
},
},
],
],
},
},
],