{"size": 1760, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "quanganhhoang/data-mining-project", "max_stars_repo_stars_event_min_datetime": "2020-06-13T02:06:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-13T02:06:17.000Z", "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "quanganhhoang/data-mining-project", "max_issues_repo_issues_event_min_datetime": "2021-06-04T23:17:00.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-22T19:06:20.000Z", "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "quanganhhoang/data-mining-project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 27.5, "max_line_length": 118, "alphanum_fraction": 0.3125}
module.exports = {
    entry: ['babel-polyfill', './manager/frontend/src/static/frontend/main.js'],
    // output: {
    //     path: path.join(__dirname, 'public'),
    //     filename: 'main.js',
    //     publicPath: '/'
    // },
    module: {
        rules: [
            {
            test: /\.js$/,
            exclude: /node_modules/,
            use: {
                loader: 'babel-loader'
            }
            },
            {
            test: /\.(png|jpe?g|gif|svg)$/i,
            use: [
                {
                loader: 'file-loader',
                },
            ],
            },
            {
            test: /\.css$/,
            use : [
                {
                    loader: 'style-loader',
                },
                {
                    loader: 'css-loader',
                    options: {
                    sourceMap: true,
                    }
                }
            ]
            },
            {
            test: /\.less$/,
            use: [
                {
                loader: 'style-loader',
                }, {
                loader: 'css-loader', // translates CSS into CommonJS
                }, {
                loader: 'less-loader', // compiles Less to CSS
                options: {
                    lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly
                    modifyVars: {
                        'primary-color': '#ff7318',
                        // 'link-color': '#1DA57A',
                        'border-radius-base': '2px',
                    },
                    javascriptEnabled: true,
                    },
                }
                }
            ]
            }
        ]
    }
}
