{"size": 901, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "MoimHossain/sunset-watch", "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": "MoimHossain/sunset-watch", "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": "MoimHossain/sunset-watch", "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": 26.5, "max_line_length": 87, "alphanum_fraction": 0.4883462819}
var path = require('path'),
    webpack = require('webpack');

var config = {
    entry: path.join(__dirname, 'src/index.js'),

    output: {
        filename: 'sunset-watch-core.js',
        devtoolModuleFilenameTemplate: function (info) {
            var resourcePath = info.absoluteResourcePath;
            if (resourcePath.indexOf(__dirname) !== 0) {
                resourcePath = path.join.apply(path, [__dirname].concat(resourcePath));
            }
            if (resourcePath.charAt(0) === '/') {
                return 'file://' + resourcePath;
            } else {
                return 'file:///' + resourcePath;
            }
        }
    },

    module: {
        loaders: [
            {
                exclude: /node_modules/,
                include: [path.resolve(__dirname, 'src')],
                loaders: ['babel']
            }
        ]
    }
};

module.exports = config;
