import extend from 'extend'

const configs = {
  main: null,
  watch: false,
}

rebuild()

export default configs

export function rebuild(overrides) {
  const environment = process.env.NODE_ENV || 'development'
  configs.main = extend(true, {
    environment: environment.trim().toLowerCase(),
    globs: {global: []},
    paths: {
      source: {root: 'src'},
      destination: {root: 'dist'},
    },
  }, overrides)
}

import extend from 'extend'

const configs = {
  main: null,
  watch: false,
}

rebuild()

export default configs

export function rebuild(overrides) {
  const {NODE_ENV = 'development'} = process.env
  configs.main = extend(true, {
    environment: NODE_ENV.trim().toLowerCase(),
    globs: {global: []},
    paths: {
      source: {root: 'src'},
      destination: {root: 'dist'},
    },
  }, overrides)
}

Use destrucuting syntax for default in rebuild
Use destrucuting syntax for default in rebuild
