mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
添加部分注释,修复一些功能
This commit is contained in:
1 parent
f40e4e2c74
commit
d3e36fcb6c
32 files changed
+320
-174
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
const
|
||||
yaml = require('js-yaml'),
|
||||
{ defaults } = require('lodash'),
|
||||
{ defaultsDeep } = require('lodash'),
|
||||
fs = require('fs'),
|
||||
path = require('path');
|
||||
|
||||
@@ -47,7 +47,7 @@ let options = {
|
||||
|
||||
try {
|
||||
let t = yaml.safeLoad(fs.readFileSync(path.resolve(process.cwd(), 'config.yaml')));
|
||||
options = defaults(t, options);
|
||||
options = defaultsDeep(t, options);
|
||||
} catch (e) {
|
||||
console.error('Cannot load config');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user