{"size": 1438, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "joecih/vue-oauth-app", "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": "joecih/vue-oauth-app", "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": "joecih/vue-oauth-app", "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": 25.6785714286, "max_line_length": 64, "alphanum_fraction": 0.4506258693}
var path = require('path')
var webpack = require('webpack')
var projectRoot = path.resolve(__dirname, './')

module.exports = {
    // the main entry of our app
    entry: ['./src/index.js', './src/auth/index.js'],
    // output configuration
    output: {
        path: path.resolve(__dirname, './dist'),
        filename: 'vueoauth.js',
        library: 'Vueoauth',
        libraryTarget: 'umd'
    },

    module: {
        preLoaders: [{
            test: /\.vue$/,
            loader: 'eslint',
            include: projectRoot,
            exclude: /node_modules/
        }, {
            test: /\.js$/,
            loader: 'eslint',
            include: projectRoot,
            exclude: /node_modules/
        }],
        loaders: [
            // process *.vue files using vue-loader
            {
                test: /\.vue$/,
                loader: 'vue'
            },
            // process *.js files using babel-loader
            // the exclude pattern is important so that we don't
            // apply babel transform to all the dependencies!
            {
                test: /\.js$/,
                loader: 'babel',
                exclude: /node_modules/
            }
        ]
    },
    resolve: {
        extensions: ['', '.js', '.vue', '.css'],
        alias: {
            'vue$': 'vue/dist/vue'
        }
    },
    babel: {
        presets: ['es2015'],
        plugins: ['transform-runtime']
    }
}
}
}