Sha256: 69b1d470a52e6cdcf1bd87f5d85d2bbc6ccdc6c09f3262cef1263c084a00951c

Contents?: true

Size: 653 Bytes

Versions: 87

Compression:

Stored size: 653 Bytes

Contents

/* eslint global-require: 0 */
/* eslint import/no-dynamic-require: 0 */

const { resolve } = require('path')
const { existsSync } = require('fs')
const Environment = require('./environments/base')
const loaders = require('./rules')
const config = require('./config')
const devServer = require('./dev_server')
const { nodeEnv } = require('./env')

const createEnvironment = () => {
  const path = resolve(__dirname, 'environments', `${nodeEnv}.js`)
  const constructor = existsSync(path) ? require(path) : Environment
  return new constructor()
}

module.exports = {
  config,
  devServer,
  environment: createEnvironment(),
  Environment,
  loaders
}

Version data entries

87 entries across 86 versions & 12 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/index.js
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/index.js
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/package/index.js
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/package/index.js
jetpacker-0.7.0 package/index.js
webpacker-5.4.4 package/index.js
jetpacker-0.6.0 package/index.js
disco_app-0.18.0 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.18.2 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.16.1 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.15.2 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.18.4 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.18.1 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.14.0 test/dummy/node_modules/@rails/webpacker/package/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/package/index.js
webpacker-5.4.3 package/index.js
webpacker-5.4.2 package/index.js
webpacker-5.4.1 package/index.js
webpacker-5.4.0 package/index.js