<commit_before>import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'

export = function fontsAndImages() {
  return function fontsAndImages(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
    return {
      module: {
        loaders: get(this, 'module.loaders', []).concat([
          // embed small images and fonts as Data Urls and larger ones as files
          { test: /\.(png|gif|jpg)$/, loader: 'url', query: { limit: 8192 } },
          { test: /\.woff2(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url', query: { limit: 10000, mimetype: 'application/font-woff2' } },
          { test: /\.woff(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url', query: { limit: 10000, mimetype: 'application/font-woff' } },
          { test: /\.(ttf|eot|svg|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file' },
        ])
      }
    }
  }
}<commit_msg>fix(index): migrate loaders => rules<commit_after>import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'

export = function fontsAndImages() {
  return function fontsAndImages(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
    return {
      module: {
        rules: get(this, 'module.rules', []).concat([
          // embed small images and fonts as Data Urls and larger ones as files
          { test: /\.(png|gif|jpg)$/, loader: 'url', query: { limit: 8192 } },
          { test: /\.woff2(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url', query: { limit: 10000, mimetype: 'application/font-woff2' } },
          { test: /\.woff(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url', query: { limit: 10000, mimetype: 'application/font-woff' } },
          { test: /\.(ttf|eot|svg|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file' },
        ])
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.22177185871453386, 'fraction_numerical': 0.03937463810075275, 'mean_word_length': 2.7811816192560177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1010578', 'n_tokens_mistral': 660, 'n_tokens_neox': 607, 'n_words': 125}