var path = require('path');

module.exports = {
	entry: {
		auth: "./app/scripts/auth/auth.js",
		scraper: "./app/scripts/scraper/scraper.js",
		background: "./app/scripts/background/background.js",
		popup: "./app/scripts/popup.js",
		app: "./app/scripts/app.js"
	},
	devtool: 'source-map',
	output: {
		path: path.join(__dirname, "app/build"),
		filename: "[name].build.js"
	},
	module: {
		loaders: [
			{ test: /\.js$/, exclude: /node_modules|bower_components/, loader: "babel-loader"},
			{ test: /\.css$/, loader: "style-loader!css-loader?root=." },
			{ test: /\.jpg$/, loader: "url-loader" },
			{ test: /\.png$/, loader: "file-loader" }
		]
	}
}

var path = require('path');

module.exports = {
	entry: {
		auth: "./app/scripts/auth/auth.js",
		scraper: "./app/scripts/scraper/scraper.js",
		background: "./app/scripts/background/background.js",
		popup: "./app/scripts/popup.js",
		app: "./app/scripts/app.js"
	},
	devtool: 'source-map',
	output: {
		path: path.join(__dirname, "app/build"),
		filename: "[name].build.js"
	},
	module: {
		loaders: [
			{ test: /\.js$/, exclude: /node_modules|bower_components/, loader: "babel-loader?stage=1"},
			{ test: /\.css$/, loader: "style-loader!css-loader?root=." },
			{ test: /\.jpg$/, loader: "url-loader" },
			{ test: /\.png$/, loader: "file-loader" }
		]
	}
}

Change babel to stage 1
Change babel to stage 1
