/* eslint-disable */
var path = require('path');
var webpack = require('webpack');
var pkg = require('./package.json');
var BANNER = '/**\n'
  + ' * @preserve\n'
  + ' * ' + pkg.name + ' v' + pkg.version + '\n'
  + ' * ' + pkg.description + '\n'
  + ' * ' + pkg.homepage + '\n'
  + ' *\n'
  + ' * Copyright (c) 2016, ' + pkg.author + '.\n'
  + ' * All rights reserved.\n'
  + ' *\n'
  + ' * Released under the ' + pkg.license + ' license.\n'
  + ' */\n';

module.exports = {
  context: path.join(__dirname, 'dist'),
  entry: ['core-js/es6/symbol', './index.js'],
  externals: {
    angular: true
  },
  output: {
    filename: pkg.name + '.js',
    libraryTarget: 'umd',
    library: 'Kinvey',
    path: path.join(__dirname, 'dist')
  },
  module: {
    loaders: [
      { test: /\.json$/, loader: 'json' }
    ]
  },
  plugins: [
    new webpack.BannerPlugin(BANNER, { raw: true })
  ],
  resolveLoader: {
    root: path.join(__dirname, 'node_modules')
  }
};

@@ -879,83 +879,632 @@
 e %7D)
+,
 %0A  
-%5D,%0A  resolveLoader: %7B%0A    root: path.join(__dirname, 'node_modules')%0A  %7D
+  new webpack.NormalModuleReplacementPlugin(%0A      /kinvey-node-sdk%5C/dist%5C/request%5C/src%5C/device%5C.js/,%0A      require.resolve(path.resolve(__dirname, 'dist/device.js'))%0A    ),%0A    new webpack.NormalModuleReplacementPlugin(%0A      /kinvey-node-sdk%5C/dist%5C/identity%5C/src%5C/popup%5C.js/,%0A      require.resolve(path.resolve(__dirname, 'node_modules/kinvey-phonegap-sdk/dist/popup.js'))%0A    ),%0A    new webpack.NormalModuleReplacementPlugin(%0A      /kinvey-node-sdk%5C/dist%5C/request%5C/src%5C/middleware%5C/src%5C/cache%5C.js/,%0A      require.resolve(path.resolve(__dirname, 'node_modules/kinvey-html5-sdk/dist/middleware/src/cache.js'))%0A    )%0A  %5D
 %0A%7D;%0A

Update webpack config