rike422/loose-leaf

View on GitHub
client/webpack.config.rails.js

Summary

Maintainability
A
0 mins
Test Coverage
process = require('process')

const NODE_ENV = process.env.NDOE_ENV

const outputConfig = {
  output: {
    library: 'LooseLeaf',
    libraryTarget: 'umd',
    path: 'app/assets/javascripts/loose_leaf',
    filename: 'index.js'
  }
}

let config = undefined
if (NODE_ENV == 'prod') {
  config = require('./webpack.config.prod')
} else {
  config = require('./webpack.config.dev')
}

module.exports = Object.assign({}, config, outputConfig)