# webpack-contrib/file-loader

File Loader

Repository: https://github.com/webpack-contrib/file-loader
Canonical: https://ross.abutalabs.com/products/file-loader
Language: JavaScript
License: MIT
License Family: permissive
Topics: webpack-loader, webpack, file
Archived: true
Last push: 2021-03-05T11:12:45+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5231, "days_push": 2007, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1844, forks 247 (observed 2026-08-28T04:05:43.289760+00:00)

## What it is
file-loader is a webpack loader that resolves import/require() calls on files into URLs and emits those files into the webpack output directory. It is deprecated for webpack 5, which provides built-in asset modules as a replacement.

## Use cases
- emit imported images into webpack output directory
- resolve image imports to public URLs in a webpack bundle
- configure custom hashed filenames for static assets
- copy fonts and media files during webpack bundling
- migrate legacy webpack 4 asset handling

## When to choose
- you are maintaining a legacy webpack 4 build that already uses file-loader
- you need its specific filename templating behavior on an older webpack version

## When to avoid
- you are starting a new project with webpack 5 or later - use built-in asset modules instead
- you need modern asset handling features like data-URI inlining thresholds

## Facets
- artifact type: plugin
- maturity: maintenance
- function: build-tool, file-system
- domain: web-development, frontend, developer-tools
- platform: -
- tags: webpack-loader, asset-pipeline, deprecated, static-assets, nodejs, javascript

## Member repositories
- webpack-contrib/file-loader (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.289760+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:17:56.961104+00:00, confidence not recorded.
  - readme: https://github.com/webpack-contrib/file-loader (fetched 2026-08-28T04:05:43.289760+00:00, sha 667ec329163f)
  - registry_npm: https://registry.npmjs.org/file-loader (fetched 2026-08-29T10:56:53.711967+00:00, sha 75485ae7953f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
