Sha256: 10fe921c96dcd31d856672cdb0f51f632cd80f85856fa90059664f1c083d6a64
Contents?: true
Size: 585 Bytes
Versions: 35
Compression:
Stored size: 585 Bytes
Contents
const { isBoolean } = require('./utils/helpers') const config = require('./config') const fetch = (key) => { const value = process.env[key] return isBoolean(value) ? JSON.parse(value) : value } const devServerConfig = config.dev_server if (devServerConfig) { const envPrefix = config.dev_server.env_prefix || 'WEBPACKER_DEV_SERVER' Object.keys(devServerConfig).forEach((key) => { const envValue = fetch(`${envPrefix}_${key.toUpperCase().replace(/_/g, '')}`) if (envValue !== undefined) devServerConfig[key] = envValue }) } module.exports = devServerConfig || {}
Version data entries
35 entries across 35 versions & 9 rubygems