src/runtime-config.js
function readTargetRc () {
  if (!fs.existsSync('./.dabao.target.json')) {
    return {}
  }
  try {
    const content = fs.readFileSync('./.dabao.target.json', { encoding: 'utf-8' })
    return JSON.parse(content)
  } catch (e) {
    console.warn('[Warning] File parsing error: .dabao.target.json')
    console.warn(e)
    return {}
  }
}
function readTargetRc () {
  if (!fs.existsSync('./.dabao.target.json')) {
    return {}
  }
  try {
    const content = fs.readFileSync('./.dabao.target.json', { encoding: 'utf-8' })
    return JSON.parse(content)
  } catch (e) {
    console.warn('[Warning] File parsing error: .dabao.target.json')
    console.warn(e)
    return {}
  }
}
function readTargetRc ( ) { if ( ! fs . existsSync ( './.dabao.target.json' ) ) { return { } } try { const content = fs . readFileSync ( './.dabao.target.json' , { encoding : 'utf-8' } ) return JSON . parse ( content ) } catch ( e ) { console . warn ( '[Warning] File parsing error: .dabao.target.json' ) console . warn ( e ) return { } } }
'.dabao.target.json'
Key-value pairs about multi-entries.
. dabao . target . json Key - value pairs about multi - entries .