mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
20 lines
418 B
JavaScript
20 lines
418 B
JavaScript
|
|
/**
|
||
|
|
* @file Provides simple user configuration options.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import loconfig from '../../loconfig.json' assert { type: 'json' };
|
||
|
|
import { merge } from '../utils/index.js';
|
||
|
|
|
||
|
|
try {
|
||
|
|
const usrconfig = await import('../../loconfig.local.json', {
|
||
|
|
assert: { type: "json" },
|
||
|
|
});
|
||
|
|
usrconfig = usrconfig.default;
|
||
|
|
|
||
|
|
merge(loconfig, usrconfig);
|
||
|
|
} catch (err) {
|
||
|
|
// do nothing
|
||
|
|
}
|
||
|
|
|
||
|
|
export default loconfig;
|