var webpack = require('webpack');
var poststylus = require('poststylus');

module.exports = {
	devtool: 'source-map',
	entry: __dirname + '/src',
	output: {
		path: 'public/builds/',
		filename: 'bundle.js'
	},
	module: {
		loaders: [
			{
				test: /\.jsx?$/,
				loader: 'babel',
				include: __dirname + '/src',
				query: {
					presets: ['es2015'],
					plugins: ['mjsx']
				},
			},
			{
				test: /\.styl/,
				loader: 'style!css!stylus',
			},
			{
				test: /\.html/,
				loader: 'html'
			}
		],
	},
	stylus: {
		use: [
			function (stylus) {
				stylus.import(__dirname + '/src/stylus/variables');
			},
			poststylus([ 'autoprefixer' ])
		]
	},
	plugins: [
    new webpack.ProvidePlugin({
	    m: 'mithril'
		})
  ]
}

@@ -66,16 +66,43 @@
 tylus');
+%0Avar path = require('path')
 %0A%0Amodule
@@ -146,16 +146,29 @@
 %09entry: 
+path.resolve(
 __dirnam
@@ -168,25 +168,24 @@
 _dirname
- +
+,
  '
-/
 src'
+)
 ,%0A%09outpu
@@ -327,16 +327,29 @@
 nclude: 
+path.resolve(
 __dirnam
@@ -353,17 +353,16 @@
 name
- +
+,
  '
-/
 src'
+)
 ,%0A%09%09
@@ -616,16 +616,29 @@
 .import(
+path.resolve(
 __dirnam
@@ -642,13 +642,11 @@
 name
- +
+,
  '
-/
 src/
@@ -663,16 +663,17 @@
 iables')
+)
 ;%0A%09%09%09%7D,%0A

Fix webpack builds on windows