{"size": 1317, "ext": "js", "max_stars_repo_path": "assets/webpack.config.js", "max_stars_repo_name": "ColdOrange/log_analyzer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/webpack.config.js", "max_issues_repo_name": "ColdOrange/log_analyzer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/webpack.config.js", "max_forks_repo_name": "ColdOrange/log_analyzer", "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": 21.2419354839, "max_line_length": 65, "alphanum_fraction": 0.4677296887}
const path = require('path');

const ExtractTextPlugin = require('extract-text-webpack-plugin');
const extractApp = new ExtractTextPlugin('../css/app.css');
const extractAntd = new ExtractTextPlugin('../css/antd.css');

module.exports = {
  entry: './src/index.js',
  output: {
    filename: 'app.js',
    path: path.resolve(__dirname, './static/js')
  },
  resolve: {
    modules: [
      'node_modules',
      path.resolve(__dirname, './src')
    ]
  },
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['env', 'react', 'stage-0'],
          }
        }
      },
      {
        test: /\.css$/,
        exclude: /node_modules/,
        use: extractApp.extract({
          fallback: 'style-loader',
          use: {
            loader: 'css-loader',
            options: {
              modules: true,
              localIdentName: '[path][name]-[local]',
            }
          }
        })
      },
      {
        test: /\.css$/,
        include: /node_modules/,
        use: extractAntd.extract({
          fallback: 'style-loader',
          use: {
            loader: 'css-loader',
          }
        })
      }
    ]
  },
  plugins: [
    extractApp,
    extractAntd
  ]
};
