'use strict'
let webpack = require('webpack')
let isProduction = process.env.NODE_ENV === 'production'

let plugins = [
  new webpack.DefinePlugin({
    __IS_BROWSER__: true,
  }),
]
if (isProduction) {
  // Disable development features in React in production build
  plugins = plugins.concat([new webpack.DefinePlugin({
    'process.env': {
      NODE_ENV: JSON.stringify('production'),
    },
  }),])
}

module.exports = {
  context: __dirname + '/app',
  entry: {
    muzhack: [
      'babel-polyfill',
      './entry.js',
    ],
    workshops: [
      'babel-polyfill',
      './workshopsEntry.js',
    ],
  },
  output: {
    path: __dirname + '/dist',
    filename: '[name].bundle.js',
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        exclude: /(node_modules)/,
        loader: 'babel',
      },
      {
        test: /\.styl$/,
        loader: 'style-loader!raw!stylus-loader',
      },
      {
        test: /\.css$/,
        loader: 'style-loader!css-loader',
      },
      {
        test: /\.(eot|woff|woff2|ttf|svg)($|\?)/,
        loader: 'url-loader?limit=30000&name=[name]-[hash].[ext]',
      },
      {
        test: /(isotope|masonry|outlayer|item|get-size|fizzy-ui-utils\/utils)\.js$/,
        loader: 'imports?define=>false',
      },
      {
        test: /\.json$/,
        loader: 'json-loader',
      },
      {
        test: /\.coffee$/,
        loader: 'coffee-loader',
        exclude: /node_modules/,
      },
      {
        test: /\.scss$/,
        loader: 'style!css!sass',
        exclude: /node_modules/,
      },
    ],
  },
  debug: false,
  resolve: {
    root: ['/',],
    modulesDirectories: ['node_modules', 'lib',],
    extensions: ['', '.js',],
  },
  devServer: {
    historyApiFallback: false,
    proxy: {
      '**': 'http://localhost:8000',
    },
  },
  plugins,
}

'use strict'
const webpack = require('webpack')
const isProduction = process.env.NODE_ENV === 'production'
const path = require('path')

let plugins = [
  new webpack.DefinePlugin({
    __IS_BROWSER__: true,
  }),
  new webpack.LoaderOptionsPlugin({
    debug: false,
  }),
]
if (isProduction) {
  // Disable development features in React in production build
  plugins = plugins.concat([new webpack.DefinePlugin({
    'process.env': {
      NODE_ENV: JSON.stringify('production'),
    },
  }),])
}

module.exports = {
  context: __dirname + '/app',
  entry: {
    muzhack: [
      'babel-polyfill',
      './entry.js',
    ],
    workshops: [
      'babel-polyfill',
      './workshopsEntry.js',
    ],
  },
  output: {
    path: __dirname + '/dist',
    filename: '[name].bundle.js',
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        exclude: /(node_modules)/,
        loader: 'babel',
      },
      {
        test: /\.styl$/,
        loader: 'style-loader!raw!stylus-loader',
      },
      {
        test: /\.css$/,
        loader: 'style-loader!css-loader',
      },
      {
        test: /\.(eot|woff|woff2|ttf|svg)($|\?)/,
        loader: 'url-loader?limit=30000&name=[name]-[hash].[ext]',
      },
      {
        test: /(isotope|masonry|outlayer|item|get-size|fizzy-ui-utils\/utils)\.js$/,
        loader: 'imports?define=>false',
      },
      {
        test: /\.json$/,
        loader: 'json-loader',
      },
      {
        test: /\.coffee$/,
        loader: 'coffee-loader',
        exclude: /node_modules/,
      },
      {
        test: /\.scss$/,
        loader: 'style!css!sass',
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    modules: [__dirname, 'node_modules', path.resolve(__dirname, 'lib'),],
    extensions: ['.js',],
  },
  devServer: {
    historyApiFallback: false,
    proxy: {
      '**': 'http://localhost:8000',
    },
  },
  plugins,
}

Fix Webpack config