<commit_before>var webpackMerge = require('webpack-merge');
var webpack = require('webpack');
var path = require('path');
var helpers = require('./config/helpers');

var webpackConfig = webpackMerge(helpers.webpackDepsConfig(), {
  context: helpers.root('..', '..'),
  entry: {
    'bootstrap': helpers.root('bootstrap.ts'),
    'js/vendor': helpers.root('js/vendor.ts'),
    'js/polyfills': helpers.root('js/polyfills.ts'),
  },

  resolve: {
    modules: [
      helpers.root('node_modules'),].concat(
      helpers.getMicroservices().map(ms => path.join(ms, 'frontend', 'node_modules'))
    ),
    extensions: ['.js', '.es6', '.ts', '.json'],
  },

  get resolveLoader() {
    return this.resolve;
  },

  module: {
    loaders: [
      {
        test: /\.ts$/,
        loaders: [
          'awesome-typescript-loader',
          'angular2-template-loader',
        ]
      },
      {
        test: /\.html$/,
        loader: 'raw-loader',
        exclude: [helpers.root('index.html')],
      },
      {
        test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
        loader: 'file',
        query: {
          name: 'assets/[name].[hash].[ext]'
        }
      },
      {
        test: /\.css$/,
        loader: 'raw-loader'
      },
      {
        test: /\.es6$/,
        loader: 'babel',
        exclude: /(node_modules|bower_components|dist)/i,
      },
      {
        test: /\.json$/,
        loader: 'json',
      },
    ],
  },

  plugins: [
    new webpack.optimize.CommonsChunkPlugin({
      name: ['js/vendor', 'js/polyfills'],
    }),
  ],

  output: {
    path: helpers.root(),
    filename: '[name].js',
    chunkFilename: '[id].chunk.js'
  },
});

if (['dev', 'stage'].indexOf(helpers.deeployConfig().env) !== -1) {
  webpackConfig.devtool = 'cheap-module-source-map';
}<commit_msg>Fix css loader<commit_after>var webpackMerge = require('webpack-merge');
var webpack = require('webpack');
var path = require('path');
var helpers = require('./config/helpers');

var webpackConfig = webpackMerge(helpers.webpackDepsConfig(), {
    context: helpers.root('..', '..'),
    entry: {
      'bootstrap': helpers.root('bootstrap.ts'),
      'js/vendor': helpers.root('js/vendor.ts'),
      'js/polyfills': helpers.root('js/polyfills.ts'),
    },

    resolve: {
      modules: [
        helpers.root('node_modules'),
      ].concat(
        helpers.getMicroservices().map(ms => path.join(ms, 'frontend', 'node_modules'))
  ),
  extensions: ['.js', '.es6', '.ts', '.json', '.css'],
},

get resolveLoader() {
  return this.resolve;
},

module: {
  loaders: [{
    test: /\.ts$/,
    loaders: [
      'awesome-typescript-loader',
      'angular2-template-loader',
    ]
  },
    {
      test: /\.html$/,
      loader: 'raw-loader',
      exclude: [helpers.root('index.html')],
    },
    {
      test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
      loader: 'file',
      query: {
        name: 'assets/[name].[hash].[ext]'
      }
    },
    {
      test: /\.css$/,
      loader: 'raw-loader',
      exclude: /@angular\/material\/core\/theming\/.+/i,
    },
    {
      test: /@angular\/material\/core\/theming\/.+\.css$/i,
      loaders: ['style-loader', 'css-loader'],
    },
    {
      test: /\.es6$/,
      loader: 'babel',
      exclude: /(node_modules|bower_components|dist)/i,
    },
    {
      test: /\.json$/,
      loader: 'json',
    },
  ],
},

plugins: [
  new webpack.optimize.CommonsChunkPlugin({
    name: ['js/vendor', 'js/polyfills'],
  }),
],

  output: {
  path: helpers.root(),
    filename: '[name].js',
    chunkFilename: '[id].chunk.js'
},
});

if (['dev', 'stage'].indexOf(helpers.deeployConfig().env) !== -1) {
  webpackConfig.devtool = 'cheap-module-source-map';
}
{'fraction_non_alphanumeric': 0.21534320323014805, 'fraction_numerical': 0.0026917900403768506, 'mean_word_length': 2.3357271095152603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3827156', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1294, 'n_words': 197}