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

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

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'
		})
  ]
}

--- 
+++ 
@@ -1,10 +1,9 @@
 var webpack = require('webpack');
 var poststylus = require('poststylus');
-var path = require('path')
 
 module.exports = {
 	devtool: 'source-map',
-	entry: path.resolve(__dirname, 'src'),
+	entry: __dirname + '/src',
 	output: {
 		path: 'public/builds/',
 		filename: 'bundle.js'
@@ -14,7 +13,7 @@
 			{
 				test: /\.jsx?$/,
 				loader: 'babel',
-				include: path.resolve(__dirname, 'src'),
+				include: __dirname + '/src',
 				query: {
 					presets: ['es2015'],
 					plugins: ['mjsx']
@@ -33,7 +32,7 @@
 	stylus: {
 		use: [
 			function (stylus) {
-				stylus.import(path.resolve(__dirname, 'src/stylus/variables'));
+				stylus.import(__dirname + '/src/stylus/variables');
 			},
 			poststylus([ 'autoprefixer' ])
 		]
Fix webpack builds on windows
