module.exports = [{
  entry: "./web.js",
  output: {
    path: __dirname,
    filename: "bundle.js"
  },
  devtool: 'eval-cheap-module-source-map',
  module: {
    loaders: [
      {
        test: /\.css$/,
        loader: "style!css"
      },
      {
        test: /\.model$/,
        loader: "raw"
      },
      {
        test: /\.(woff|woff2)$/,
        loader: "url-loader?limit=10000&mimetype=application/font-woff"
      },
      {
        test: /\.ttf$/,
        loader: "file-loader"
      },
      {
        test: /\.eot$/,
        loader: "file-loader"
      },
      {
        test: /\.svg$/,
        loader: "file-loader"
      },
      {
        test: /\.jsx$/,
        loader: 'babel-loader',
        query: {
          presets: ['react'],
        },
      },
      {
        test: /\.json$/,
        loader: "json-loader"
      },
    ]
  }
}, {
  entry: "./worker.js",
  output: {
    path: __dirname,
    filename: "worker-bundle.js"
  },
  devtool: 'eval-cheap-module-source-map',
  target: 'webworker',
  module: {
    loaders: [
      {
        test: /\.json$/,
        loader: "json-loader"
      },
    ],
  },
}];

var path = require('path');

var resolveLoader = {
  root: [
    path.resolve('node_modules'),
  ],
};

module.exports = [{
  entry: "./web.js",
  output: {
    path: __dirname,
    filename: "bundle.js"
  },
  devtool: 'eval-cheap-module-source-map',
  module: {
    loaders: [
      {
        test: /\.css$/,
        loader: "style!css"
      },
      {
        test: /\.model$/,
        loader: "raw"
      },
      {
        test: /\.(woff|woff2)$/,
        loader: "url-loader?limit=10000&mimetype=application/font-woff"
      },
      {
        test: /\.ttf$/,
        loader: "file-loader"
      },
      {
        test: /\.eot$/,
        loader: "file-loader"
      },
      {
        test: /\.svg$/,
        loader: "file-loader"
      },
      {
        test: /\.jsx$/,
        loader: 'babel-loader',
        query: {
          presets: ['react'],
        },
      },
      {
        test: /\.json$/,
        loader: "json-loader"
      },
    ]
  },
  resolveLoader: resolveLoader,
}, {
  entry: "./worker.js",
  output: {
    path: __dirname,
    filename: "worker-bundle.js"
  },
  devtool: 'eval-cheap-module-source-map',
  target: 'webworker',
  module: {
    loaders: [
      {
        test: /\.json$/,
        loader: "json-loader"
      },
    ],
  },
  resolveLoader: resolveLoader,
}];

Configure webpack to handle runway-compiler being outside this directory
Configure webpack to handle runway-compiler being outside this directory
