'use strict';

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

module.exports = {
  module: {
    preLoaders: [{
      test: /\.js?/,
      exclude: /node_modules/,
      loader: 'xo-loader'
    }],
    loaders: [{
      test: /\.js?/,
      exclude: /node_modules/,
      loaders: ['babel-loader']
    }, {
      test: /\.css$/,
      loader: 'style-loader!css-loader'
    }, {
      test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
      loader: "url-loader?limit=1000000&mimetype=application/font-woff"
    }, {
      test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
      loader: "file-loader"
    }]
  },
  entry: path.resolve(__dirname, 'src/photon.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    publicPath: 'dist/',
    filename: 'photon.js',
    library: 'ReactPhotonKit',
    libraryTarget: 'umd'
  },
  externals: [
    'react',
    'react-dom'
  ],
  xo: {
    extends: ["xo", "xo-react"],
    rules: {
      "quote-props": ["error", "as-needed"]
    }
  }
};

@@ -12,44 +12,8 @@
 ';%0A%0A
-const webpack = require('webpack');%0A
 cons
@@ -58,18 +58,17 @@
 rts = %7B%0A
-  
+%09
 module: 
@@ -69,20 +69,18 @@
 dule: %7B%0A
-    
+%09%09
 preLoade
@@ -78,38 +78,35 @@
 %09preLoaders: %5B%7B%0A
-      
+%09%09%09
 test: /%5C.js?/,%0A 
@@ -96,34 +96,33 @@
 %09test: /%5C.js
-?/,%0A      
+x?$/,%0A%09%09%09
 exclude: /no
@@ -130,30 +130,27 @@
 e_modules/,%0A
-      
+%09%09%09
 loader: 'xo-
@@ -161,20 +161,16 @@
 er'%0A
-    %7D%5D,%0A    
+%09%09%7D%5D,%0A%09%09
 load
@@ -177,22 +177,19 @@
 ers: %5B%7B%0A
-      
+%09%09%09
 test: /%5C
@@ -195,18 +195,17 @@
 %5C.js
-?/,%0A      
+x?$/,%0A%09%09%09
 excl
@@ -225,22 +225,19 @@
 dules/,%0A
-      
+%09%09%09
 loaders:
@@ -254,31 +254,26 @@
 oader'%5D%0A
-    
+%09%09
 %7D, %7B%0A
-      
+%09%09%09
 test: /%5C
@@ -276,30 +276,27 @@
 : /%5C.css$/,%0A
-      
+%09%09%09
 loader: 'sty
@@ -317,31 +317,26 @@
 loader'%0A
-    
+%09%09
 %7D, %7B%0A
-      
+%09%09%09
 test: /%5C
@@ -366,38 +366,35 @@
 -9%5D%5C.%5B0-9%5D)?$/,%0A
-      
+%09%09%09
 loader: %22url-loa
@@ -447,23 +447,18 @@
 ff%22%0A
-    
+%09%09
 %7D, %7B%0A
-      
+%09%09%09
 test
@@ -505,22 +505,19 @@
 9%5D)?$/,%0A
-      
+%09%09%09
 loader: 
@@ -534,22 +534,18 @@
 er%22%0A
-    %7D%5D%0A  %7D,%0A  
+%09%09%7D%5D%0A%09%7D,%0A%09
 entr
@@ -589,18 +589,17 @@
 n.js'),%0A
-  
+%09
 output: 
@@ -600,20 +600,18 @@
 tput: %7B%0A
-    
+%09%09
 path: pa
@@ -641,20 +641,18 @@
 dist'),%0A
-    
+%09%09
 publicPa
@@ -664,20 +664,18 @@
 dist/',%0A
-    
+%09%09
 filename
@@ -689,20 +689,18 @@
 on.js',%0A
-    
+%09%09
 library:
@@ -718,20 +718,18 @@
 onKit',%0A
-    
+%09%09
 libraryT
@@ -745,15 +745,13 @@
 md'%0A
-  %7D,%0A  
+%09%7D,%0A%09
 exte
@@ -759,20 +759,18 @@
 nals: %5B%0A
-    
+%09%09
 'react',
@@ -770,20 +770,18 @@
 react',%0A
-    
+%09%09
 'react-d
@@ -788,25 +788,21 @@
 om'%0A
-  %5D,%0A  
+%09%5D,%0A%09
 xo: %7B%0A
-    
+%09%09
 exte
@@ -826,20 +826,18 @@
 eact%22%5D,%0A
-    
+%09%09
 rules: %7B
@@ -841,14 +841,11 @@
 : %7B%0A
-      
+%09%09%09
 %22quo
@@ -882,16 +882,13 @@
 d%22%5D%0A
-    %7D%0A  
+%09%09%7D%0A%09
 %7D%0A%7D;

Update webpack config