'use strict'

var path = require('path')
var node_modules = path.resolve(__dirname, 'node_modules')

// var production = process.argv.indexOf('--production') > -1

module.exports = {
  entry: path.resolve(__dirname, 'src/js/index.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      { test: /\.js$/, exclude: node_modules, loader: 'babel-loader' },
      { test: /\.scss$/, exclude: node_modules, loader: 'style!css!sass' }
    ]
  },
  devServer: { contentBase: './dist' }
}

'use strict'

var path = require('path')
var node_modules = path.resolve(__dirname, 'node_modules')

module.exports = {
  entry: path.resolve(__dirname, 'src/js/index.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      { test: /\.js$/, exclude: node_modules, loader: 'babel-loader?stage=0' },
      { test: /\.scss$/, exclude: node_modules, loader: 'style!css!sass' }
    ]
  },
  devServer: { contentBase: './dist' }
}

Add stage 0 to babel
Add stage 0 to babel
