Sha256: 500a5432d6ebeaf486fc9a9ff8331024d3cc62f71adc02d58914c740cbcbcd53
Contents?: true
Size: 461 Bytes
Versions: 21
Compression:
Stored size: 461 Bytes
Contents
const { env } = 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 { throw new Error(`Could not find file to load ${path}, based on NODE_ENV`) } } module.exports = envSpecificConfig()
Version data entries
21 entries across 21 versions & 1 rubygems