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

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/dev_server.js
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/dev_server.js
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/dev_server.js
jetpacker-0.7.0 package/dev_server.js
shakapacker-6.6.0 package/dev_server.js
shakapacker-6.5.6 package/dev_server.js
webpacker-5.4.4 package/dev_server.js
shakapacker-6.5.5 package/dev_server.js
jetpacker-0.6.0 package/dev_server.js
shakapacker-6.5.4 package/dev_server.js
shakapacker-6.5.3 package/dev_server.js
shakapacker-6.5.2 package/dev_server.js
shakapacker-6.5.1 package/dev_server.js
shakapacker-6.5.0 package/dev_server.js
shakapacker-6.4.1 package/dev_server.js
shakapacker-6.4.0 package/dev_server.js
shakapacker-6.3.0 package/dev_server.js
shakapacker-6.3.0.pre.rc.1 package/dev_server.js
shakapacker-6.2.1 package/dev_server.js
shakapacker-6.2.0 package/dev_server.js