Sha256: c5797d4d06366d544f499c2bf50431235e524ce298e55e3aa554ca8e96968c19
Contents?: true
Size: 567 Bytes
Versions: 71
Compression:
Stored size: 567 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()}`) if (envValue !== undefined) devServerConfig[key] = envValue }) } module.exports = devServerConfig || {}
Version data entries
71 entries across 71 versions & 8 rubygems