rike422/loose-leaf

View on GitHub
client/webpack.config.js

Summary

Maintainability
A
0 mins
Test Coverage
process = require('process')
const NODE_ENV = process.env.NDOE_ENV
const outputConfig = {
  output: {
    path: 'client/dist/',
    filename: 'loose-leaf.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)