import webpack from 'webpack'

export default {
  entry: './src',
  module: {
    loaders: [
      {
        exclude: /node_modules/,
        loader: 'babel',
        test: /\.js$/,
      },{
      include: /src/,
      loaders: ['style', 'css?modules', 'cssnext'],
      test: /\.css$/,
    }],
  },
  output: {
    filename: './dist/client.min.js',
    library: 'Cignium',
    libraryTarget: 'var',
  },
  plugins: [
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('production'),
    }),
    new webpack.optimize.UglifyJsPlugin({
      comments: false,
      compress: {
        warnings: false,
      },
    }),
  ],
}

@@ -89,23 +89,16 @@
 s: %5B
-%0A      
 %7B%0A      
   ex
@@ -97,20 +97,18 @@
     
- 
- ex
+in
 clude: /
 node
@@ -107,25 +107,14 @@
 e: /
-node_modules
+src
 /,%0A
-  
     
@@ -134,26 +134,24 @@
 bel',%0A      
-  
 test: /%5C.js$
@@ -153,18 +153,16 @@
 %5C.js$/,%0A
-  
     %7D,%7B%0A
@@ -253,24 +253,118 @@
 : /%5C.css$/,%0A
+    %7D,%7B%0A      include: /node_modules/,%0A      loaders: %5B'style', 'css'%5D,%0A      test: /%5C.css$/,%0A
     %7D%5D,%0A  %7D,

fix webpack production configuration