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

module.exports = {
	devtool: 'cheap-module-source-map',

	entry: [
		'./specs/specs.js',
	],

	output: {
		path: path.resolve(__dirname, '../specs'),
		publicPath: '/build/',
		filename: 'bundle.js',
	},

	resolve: {
		modulesDirectories: [
			path.resolve(__dirname, '../node_modules'),
		],
		extensions: ['', '.js', '.jsx', '.scss'],
	},

	plugins: [
		new webpack.DefinePlugin({
			DEBUG: JSON.stringify('true'),
		}),
	],

	module: {
		noParse: /\.min\.js/,

		loaders: [
			{
				test: /\.js$/,
				include: [
					path.resolve(__dirname, '../src'),
					path.resolve(__dirname, '../specs'),
				],
				loader: 'babel',
			},
			{
				test: /\.styl$/,
				loaders: [
					'style',
					'css',
					'postcss',
					'stylus',
				],
			},
		],
	},

	postcss: function() {
		return [
			autoprefixer,
		];
	},
};

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

module.exports = {
	devtool: 'eval',

	entry: [
		'./specs/specs.js',
	],

	output: {
		path: path.resolve(__dirname, '../specs'),
		publicPath: '/build/',
		filename: 'bundle.js',
	},

	resolve: {
		modulesDirectories: [
			path.resolve(__dirname, '../node_modules'),
		],
		extensions: ['', '.js', '.jsx', '.scss'],
	},

	plugins: [
		new webpack.DefinePlugin({
			DEBUG: JSON.stringify('true'),
		}),
	],

	module: {
		noParse: /\.min\.js/,

		loaders: [
			{
				test: /\.js$/,
				include: [
					path.resolve(__dirname, '../src'),
					path.resolve(__dirname, '../specs'),
				],
				loader: 'babel',
			},
			{
				test: /\.styl$/,
				loaders: [
					'style',
					'css',
					'postcss',
					'stylus',
				],
			},
		],
	},

	postcss: function() {
		return [
			autoprefixer,
		];
	},
};

Disable source maps because of issues with Stylus.
Disable source maps because of issues with Stylus.
