{"size": 1184, "ext": "js", "max_stars_repo_path": "app/webpack.config.js", "max_stars_repo_name": "jalcantaram/django_docker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/webpack.config.js", "max_issues_repo_name": "jalcantaram/django_docker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/webpack.config.js", "max_forks_repo_name": "jalcantaram/django_docker", "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": 23.2156862745, "max_line_length": 66, "alphanum_fraction": 0.379222973}
const path = require('path'),
MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
    entry: { main: './assets/js/app.js' },
    output: {
        path: path.resolve(__dirname, 'static'),
        filename: 'app.js'
    },
    module: {
        rules: [
        {
            test: /\.js$/,
            exclude: /node_modules/,
            use: {
            loader: "babel-loader"
            }
        },
        {
            test: /\.(sa|sc|c)ss$/,
            use:  [
            MiniCssExtractPlugin.loader,
            'css-loader',
            'postcss-loader',
            'sass-loader'
            ]
        },
        {
            test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
            use: [
            {
                loader: 'file-loader',
                options: {
                name: '[name].[ext]',
                outputPath: 'fonts/'
                }
            }
            ]
        }
        ]
    },
    plugins: [
        // new CleanWebpackPlugin({
        //   cleanOnceBeforeBuildPatterns: ['**/*', '!src/**']
        // }),
        new MiniCssExtractPlugin({
        filename: 'app.css',
        })
    ]
};
