Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
23
Frontend-Learner/node_modules/replace-in-file/lib/helpers/load-config.js
generated
vendored
Normal file
23
Frontend-Learner/node_modules/replace-in-file/lib/helpers/load-config.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* Dependencies
|
||||
*/
|
||||
const path = require('path');
|
||||
|
||||
/**
|
||||
* Helper to load options from a config file
|
||||
*/
|
||||
module.exports = function loadConfig(file) {
|
||||
|
||||
//No config file provided?
|
||||
if (!file) {
|
||||
return {};
|
||||
}
|
||||
|
||||
//Resolve path
|
||||
file = path.resolve(file);
|
||||
|
||||
//Try to load
|
||||
return require(file);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue