path = require('path')

module.exports = {
  entry: './src/examples/app.cjsx',
  output: {
    path: path.join(__dirname, "examples/js"),
    filename: 'app.js',
    libraryTarget: 'umd'
  },
  resolveLoader: {
    modulesDirectories: ['node_modules']
  },
  resolve: {
    extensions: ['', '.js', '.cjsx', '.coffee']
  },
  externals: [
    'react',
    'moment',
    'radium'
  ],
  module: {
    loaders: [
      {test: /\.cjsx$/, loaders: ['coffee-loader', 'cjsx-loader']},
      {test: /\.coffee$/, loader: 'coffee-loader'}
    ]
  }
}