mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 13:56:22 -04:00
set conservativeCollapse to true when minifying lit templates
This commit is contained in:
parent
574ea65d8d
commit
8582d340b8
@ -34,8 +34,8 @@ if (wrapper) {
|
|||||||
})()}
|
})()}
|
||||||
${(() => {
|
${(() => {
|
||||||
if (repo.stars > 0) {
|
if (repo.stars > 0) {
|
||||||
const starsPlural = repo.stars === 1 ? "star" : "stars";
|
|
||||||
const starsComma = numeral(repo.stars).format("0,0");
|
const starsComma = numeral(repo.stars).format("0,0");
|
||||||
|
const starsPlural = repo.stars === 1 ? "star" : "stars";
|
||||||
|
|
||||||
return html`<div class="repo-meta" title="${starsComma} ${starsPlural}">
|
return html`<div class="repo-meta" title="${starsComma} ${starsPlural}">
|
||||||
<svg viewBox="0 0 16 16" height="16" width="16">
|
<svg viewBox="0 0 16 16" height="16" width="16">
|
||||||
@ -50,8 +50,8 @@ if (wrapper) {
|
|||||||
})()}
|
})()}
|
||||||
${(() => {
|
${(() => {
|
||||||
if (repo.forks > 0) {
|
if (repo.forks > 0) {
|
||||||
const forksPlural = repo.forks === 1 ? "fork" : "forks";
|
|
||||||
const forksComma = numeral(repo.forks).format("0,0");
|
const forksComma = numeral(repo.forks).format("0,0");
|
||||||
|
const forksPlural = repo.forks === 1 ? "fork" : "forks";
|
||||||
|
|
||||||
return html`<div class="repo-meta" title="${forksComma} ${forksPlural}">
|
return html`<div class="repo-meta" title="${forksComma} ${forksPlural}">
|
||||||
<svg viewBox="0 0 16 16" height="16" width="16">
|
<svg viewBox="0 0 16 16" height="16" width="16">
|
||||||
|
@ -106,6 +106,7 @@ GitHub: https://github.com/jakejarvis/jarv.is`,
|
|||||||
htmlMinifier: {
|
htmlMinifier: {
|
||||||
html5: true,
|
html5: true,
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
|
conservativeCollapse: true,
|
||||||
removeComments: false,
|
removeComments: false,
|
||||||
caseSensitive: true,
|
caseSensitive: true,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user