mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
使用url()来构建url
This commit is contained in:
1 parent
0efac48bde
commit
86f67a0ec3
61 files changed
+262
-275
No files matched your search
@@ -1,3 +1,4 @@
|
||||
global.DEBUG = true;
|
||||
require('./index.js')('development').catch((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
@@ -85,9 +85,3 @@ async function build(type) {
|
||||
}
|
||||
|
||||
module.exports = build;
|
||||
|
||||
if (!module.parent) {
|
||||
build('development').catch((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
}
|
||||
+1
-1
@@ -25,7 +25,7 @@ const build = (dirOrObject) => {
|
||||
}
|
||||
} else templates = dirOrObject;
|
||||
for (const i in templates) {
|
||||
if (i.endsWith('.html') && !templates[i].includes('No Compression')) {
|
||||
if (i.endsWith('.html') && !global.DEBUG && !templates[i].includes('No Compression')) {
|
||||
templates[i] = templates[i]
|
||||
.trim()
|
||||
.replace(/ *\n */gmi, ' ')
|
||||
|
||||
Reference in new issue
Block a user