"use strict"

const webpack = require("webpack")
const ExtractTextPlugin = require("extract-text-webpack-plugin")
const CopyWebpackPlugin = require("copy-webpack-plugin")
const WebpackNotifierPlugin = require("webpack-notifier")

module.exports = {
	entry: ["./web/static/css/app.css", "./web/static/js/app.js"],
	output: {
		path: "./priv/static",
		filename: "js/app.js"
	},
	resolve: {
		modulesDirectories: [ "node_modules", __dirname + "/web/static/js" ]
	},
	module: {
		loaders: [{
			test: /\.js$/,
			exclude: /node_modules/,
			loader: "babel",
			query: {
				presets: ["es2015", "react"]
			}
		}, {
			test: /\.css$/,
			loader: ExtractTextPlugin.extract("style", "css")
		}]
	},
	devtool: "source-map",
	plugins: [
		new WebpackNotifierPlugin({ skipFirstNotification: true }),
		new ExtractTextPlugin("css/app.css"),
		new CopyWebpackPlugin([{ from: "./web/static/assets" }]),
		new webpack.DefinePlugin({
			"process.env": {
				NODE_ENV: JSON.stringify(process.env.NODE_ENV)
			}
		}),
	]
}

@@ -242,17 +242,18 @@
 rts = %7B%0A
-%09
+  
 entry: %5B
@@ -307,17 +307,18 @@
 p.js%22%5D,%0A
-%09
+  
 output: 
@@ -319,18 +319,20 @@
 tput: %7B%0A
-%09%09
+    
 path: %22.
@@ -346,18 +346,20 @@
 tatic%22,%0A
-%09%09
+    
 filename
@@ -372,21 +372,23 @@
 app.js%22%0A
-%09%7D,%0A%09
+  %7D,%0A  
 resolve:
@@ -390,18 +390,20 @@
 olve: %7B%0A
-%09%09
+    
 modulesD
@@ -463,21 +463,23 @@
 c/js%22 %5D%0A
-%09%7D,%0A%09
+  %7D,%0A  
 module: 
@@ -480,18 +480,20 @@
 dule: %7B%0A
-%09%09
+    
 loaders:
@@ -496,19 +496,22 @@
 ers: %5B%7B%0A
-%09%09%09
+      
 test: /%5C
@@ -517,19 +517,22 @@
 %5C.js$/,%0A
-%09%09%09
+      
 exclude:
@@ -548,19 +548,22 @@
 dules/,%0A
-%09%09%09
+      
 loader: 
@@ -571,19 +571,22 @@
 babel%22,%0A
-%09%09%09
+      
 query: %7B
@@ -586,20 +586,24 @@
 uery: %7B%0A
-%09%09%09%09
+        
 presets:
@@ -627,23 +627,31 @@
 t%22%5D%0A
-%09%09%09%7D%0A%09%09%7D, %7B%0A%09%09%09
+      %7D%0A    %7D, %7B%0A      
 test
@@ -662,19 +662,22 @@
 .css$/,%0A
-%09%09%09
+      
 loader: 
@@ -722,18 +722,22 @@
 s%22)%0A
-%09%09%7D%5D%0A%09%7D,%0A%09
+    %7D%5D%0A  %7D,%0A  
 devt
@@ -755,17 +755,18 @@
 e-map%22,%0A
-%09
+  
 plugins:
@@ -768,18 +768,20 @@
 gins: %5B%0A
-%09%09
+    
 new Webp
@@ -832,18 +832,20 @@
 rue %7D),%0A
-%09%09
+    
 new Extr
@@ -874,18 +874,20 @@
 .css%22),%0A
-%09%09
+    
 new Copy
@@ -936,18 +936,20 @@
 s%22 %7D%5D),%0A
-%09%09
+    
 new webp
@@ -967,19 +967,22 @@
 lugin(%7B%0A
-%09%09%09
+      
 %22process
@@ -994,12 +994,16 @@
 : %7B%0A
-%09%09%09%09
+        
 NODE
@@ -1049,20 +1049,26 @@
 NV)%0A
-%09%09%09%7D%0A%09%09
+      %7D%0A    
 %7D),%0A
-%09
+  
 %5D%0A%7D%0A

Revert insane spacing in webpack config