Sha256: 2112df7dbf29fd867a81f74f9ca459f625cde290707646049911be8a8beec3ab

Contents?: true

Size: 724 Bytes

Versions: 13

Compression:

Stored size: 724 Bytes

Contents

const { env, webpackConfig } = require('shakapacker')
const { existsSync } = require('fs')
const { resolve } = require('path')

const envSpecificConfig = () => {
  const path = resolve(__dirname, `${env.nodeEnv}.js`)
  if (existsSync(path)) {
    console.log(`Loading ENV specific webpack configuration file ${path}`)
    return require(path)
  } else {
    return webpackConfig
  }
}

const webpackConfiguration = envSpecificConfig()

// To debug the webpack configuration
// 1. Uncomment debugger line below
// 2. Run `bin/webpacker --debug-webpacker`
// 3. Examine the webpackConfiguration variable
// 4. Consider adding a 'debugger` line to the beginning of this file.
// debugger

module.exports = webpackConfiguration

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shakapacker-7.2.3 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.3.0.beta.1 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.2.2 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.2.1 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.2.0 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.2.0.rc.0 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.1.0 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.3 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.2 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.1 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.0 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.0.rc.2 spec/dummy/config/webpack/webpack.config.js
shakapacker-7.0.0.rc.1 spec/dummy/config/webpack/webpack.config.js