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