mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bug fix
This commit is contained in:
1 parent
2b6a510c1e
commit
f2bcc3bc93
23 files changed
+241
-119
No files matched your search
+2
-2
@@ -15,7 +15,7 @@ function getFiles(folder) {
|
||||
return files;
|
||||
}
|
||||
|
||||
const build = (dirOrObject, exclude = []) => {
|
||||
const build = (dirOrObject) => {
|
||||
let templates = {};
|
||||
if (typeof dirOrObject === 'string') {
|
||||
const files = getFiles(dirOrObject);
|
||||
@@ -25,7 +25,7 @@ const build = (dirOrObject, exclude = []) => {
|
||||
}
|
||||
} else templates = dirOrObject;
|
||||
for (const i in templates) {
|
||||
if (!exclude.includes(i) && i.endsWith('.html')) {
|
||||
if (i.endsWith('.html') && !templates[i].includes('No Compression')) {
|
||||
templates[i] = templates[i]
|
||||
.trim()
|
||||
.replace(/ *\n */gmi, ' ')
|
||||
|
||||
Reference in new issue
Block a user