{"size": 2168, "ext": "js", "max_stars_repo_path": "webpack.dev.js", "max_stars_repo_name": "shakir-abdo/Vue-Express-Webpack-boilerplate", "max_stars_repo_stars_event_min_datetime": "2017-09-25T21:13:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-28T05:39:32.000Z", "max_issues_repo_path": "webpack.dev.js", "max_issues_repo_name": "shakir-abdo/Vue-Express-Webpack-boilerplate", "max_issues_repo_issues_event_min_datetime": "2017-05-11T12:45:50.000Z", "max_issues_repo_issues_event_max_datetime": "2017-05-11T16:26:22.000Z", "max_forks_repo_path": "webpack.dev.js", "max_forks_repo_name": "shakir-abdo/Vue-Express-Webpack-boilerplate", "max_forks_repo_forks_event_min_datetime": "2017-09-26T15:33:07.000Z", "max_forks_repo_forks_event_max_datetime": "2019-04-22T14:53:32.000Z"}
{"max_stars_count": 16, "max_issues_count": 1, "max_forks_count": 9, "avg_line_length": 30.1111111111, "max_line_length": 86, "alphanum_fraction": 0.3242619926}
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const LiveReloadPlugin = require('webpack-livereload-plugin')

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

    entry: './src/js/main.js',

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

    module: {
        rules: [{
                test: /\.vue$/,
                loader: 'vue-loader',
                options: {
                    loaders: {
                        sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
                    }
                }
            },
            {
                test: /\.js$/,
                exclude: /(node_modules)/,
                loader: 'babel-loader',
                query: {
                    presets: ['es2015', 'stage-2']
                }
            },
            {
                test: /\.(scss|sass)$/,
                use: ExtractTextPlugin.extract({
                    fallback: 'style-loader',
                    use: [{
                            loader: 'css-loader',
                            options: {
                                sourceMap: true,
                                importLoaders: true
                            }
                        },
                        {
                            loader: 'postcss-loader',
                            options: {
                                sourceMap: 'inline',
                                plugins: function() {
                                    return [require('autoprefixer')]
                                }
                            }
                        },
                        {
                            loader: 'sass-loader',
                            options: {
                                outputStyle: 'expanded',
                                sourceMap: true
                            }
                        }
                    ]
                })
            }
        ]
    },

    plugins: [
        new ExtractTextPlugin('./css/style.css'),
        new LiveReloadPlugin()
    ]
}
