You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
295 B
12 lines
295 B
const requireFn = function(path) {
|
|
return require(path);
|
|
}
|
|
const initConfig = {
|
|
baseDir: __dirname, // 云函数根目录地址
|
|
requireFn,
|
|
customUtil :{
|
|
// 你自己的工具包,写这里后即可听过customUtil.mynpm1调用
|
|
// mynpm1:mynpm1
|
|
}
|
|
};
|
|
module.exports = initConfig;
|