<commit_before>
const _       = require('lodash');
const path    = require('path');

const webpack = require('webpack');

// plugins
const CleanWebpackPlugin    = require('clean-webpack-plugin');
const AutoCleanBuildPlugin  = require('webpack-auto-clean-build-plugin');
const ExtractTextPlugin     = require('extract-text-webpack-plugin');
const webpackUglifyJsPlugin = require('webpack-uglify-js-plugin');
const WebpackChunkHash      = require('webpack-chunk-hash');
const AssetsWebpackPlugin   = require('assets-webpack-plugin');

//
module.exports = {
  entry: {
    main:   './js/main.js',
    vendor: './js/vendor.js'
  },
  output: {
    filename: '[name]-[chunkhash].js',
    path:     './public/dist'
  },
  module: {
    rules: [{
      test: /\.scss$/,
      exclude: /node_modules/,
      loader: ExtractTextPlugin.extract({
        loader: ['css-loader', 'sass-loader']
      })
    }, {
      test: /\.less$/,
      exclude: /node_modules/,
      loader: ExtractTextPlugin.extract({
        loader: ['css-loader', 'less-loader']
      })
    }, {
      test: /\.jsx$/,
      exclude: /node_modules/,
      loader: 'babel-loader'
    }, {
      test: /\.(png|woff|woff2|eot|ttf|svg)(\?v=\d+\.\d+\.\d+)?$/,
      loader: 'url-loader?limit=100000'
    }]
  },
  // devtool: 'source-map',
  plugins: [
    new CleanWebpackPlugin(['public/dist'], {
      root: process.cwd(),
      verbose: true,
      dry: false
    }),
    new AutoCleanBuildPlugin(),<commit_msg>Webpack : replace « loader » with « use » in config<commit_after>
const _       = require('lodash');
const path    = require('path');

const webpack = require('webpack');

// plugins
const CleanWebpackPlugin    = require('clean-webpack-plugin');
const AutoCleanBuildPlugin  = require('webpack-auto-clean-build-plugin');
const ExtractTextPlugin     = require('extract-text-webpack-plugin');
const webpackUglifyJsPlugin = require('webpack-uglify-js-plugin');
const WebpackChunkHash      = require('webpack-chunk-hash');
const AssetsWebpackPlugin   = require('assets-webpack-plugin');

//
module.exports = {
  entry: {
    main:   './js/main.js',
    vendor: './js/vendor.js'
  },
  output: {
    filename: '[name]-[chunkhash].js',
    path:     './public/dist'
  },
  module: {
    rules: [{
      test: /\.scss$/,
      exclude: /node_modules/,
      use: ExtractTextPlugin.extract({
        use: ['css-loader', 'sass-loader']
      })
    }, {
      test: /\.less$/,
      exclude: /node_modules/,
      use: ExtractTextPlugin.extract({
        use: ['css-loader', 'less-loader']
      })
    }, {
      test: /\.jsx$/,
      exclude: /node_modules/,
      use: 'babel-loader'
    }, {
      test: /\.(png|woff|woff2|eot|ttf|svg)(\?v=\d+\.\d+\.\d+)?$/,
      use: 'url-loader?limit=100000'
    }]
  },
  // devtool: 'source-map',
  plugins: [
    new CleanWebpackPlugin(['public/dist'], {
      root: process.cwd(),
      verbose: true,
      dry: false
    }),
    new AutoCleanBuildPlugin(),
{'fraction_non_alphanumeric': 0.18577208361429534, 'fraction_numerical': 0.004720161834120027, 'mean_word_length': 2.6449631449631448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6783161', 'n_tokens_mistral': 1009, 'n_tokens_neox': 976, 'n_words': 173}