foxhound87
2/13/2016 - 6:28 PM

.bablerc

var path = require('path');
var webpack = require('webpack');

module.exports = {
  devtool: 'eval',
  entry: [
    'eventsource-polyfill', // necessary for hot reloading with IE
    'webpack-hot-middleware/client',
    './src/index'
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js',
    publicPath: '/static/'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin()
  ],
  module: {
    loaders: [{
      test: /\.jsx?/,
      loaders: ['babel'],
      include: path.join(__dirname, 'src')
    }]
  }
};
{
  "presets": ["react", "es2015", "stage-1"],
  "plugins": [
    "babel-root-import",
    "transform-decorators-legacy",
    "transform-class-properties",
    "transform-decorators"
  ],
  "env": {
    "development": {
      "presets": ["react-hmre"]
    }
  }
}