{"size": 1334, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "martin-banks/explainer-cards", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "martin-banks/explainer-cards", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "martin-banks/explainer-cards", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.868852459, "max_line_length": 122, "alphanum_fraction": 0.64017991}
const HTMLWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

const HTMLWebpackPluginConfig = new HTMLWebpackPlugin({
	template: __dirname + '/src/preview.html',
	filename: 'preview.html',
	inject: 'body'
})

const webpack = require("webpack");
module.exports = {
  plugins: [
    new webpack.NewWatchingPlugin()
  ]
};

module.exports = {
	entry: __dirname + '/src/App.js',
	module: {
		loaders: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: 'babel-loader'
			},
			/*{
				test: /\.css$/,
				loader: ExtractTextPlugin.extract('css')
			},*/
			/*{
				test: /\.sass$/,
				loader: ExtractTextPlugin.extract('css!sass?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]')
			},*/
			{
				test: /\.css/,
				loader: ExtractTextPlugin.extract('css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]'),
			},
			{
				test: /\.(jpe?g|png|gif|svg)$/i,
				loaders: [
					'file?hash=sha512&digest=hex&name=[hash].[ext]',
					'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
				]
			}
		]
	},
	output: {
		filename: 'app_build.js',
		path: __dirname + '/build/',
		publicPath: ''
	},
	plugins: [
		HTMLWebpackPluginConfig,
		new ExtractTextPlugin('app.css', {
			allChunks: true
		})
	]

}

